Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have finally got port forwarding working on my system, it's been a real challenge because my Modem and Router were both trying to do the job, I have now bridged my modem and it is all handled by my router.

I am trying to run Apache webserver from my IP. To get it working I had to change my port forwarding to use port 8080 instead of port 80.

So in my Apache httpd.conf file I had to change Listen 80 to Listen 8080 and ServerName localhost:80 to ServerName localhost:8080

As a result, I can now access my server from my external IP address as long as I add :8080 to the end of the IP but I can no longer access it with localhost instead I have to use localhost:8080

So my question, is there anyway to make localhost work without the need of adding :8080 to the end of it? Also with my IP address, I would like to not have to add :8080 to the end of it?

share|improve this question
up vote 1 down vote accepted

No. But you can add 80 to another Listen directive to have it listen on both, and then create a new virtual host that unconditionally redirects to port 8080 of the same host using mod_rewrite.

share|improve this answer
Thanks I will look into this, for now I added another Listen 80 and this make my `localhost' work again so that's a big step thanks – JasonDavis Aug 25 '12 at 17:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .