Server Fault is a question and answer site for system and network administrators. 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

How do I configure virutal host so that I donot have to add port to the url ? Now that I am running apache on different port (88) I Want to use  instead of

share|improve this question

If the server is behind a router (like on your home network) you can use port forwarding to forward traffic coming in on port 80 to the server on port 88.

Every router admin area is different, but usually you type (your "gateway") into a browser, enter your credentials, then navigate to Port Forwarding. On some routers it's under a separate area, but this should be enough to get you within a few clicks.

In this case Apache would still listen on port 88.

share|improve this answer

Of course no, you can't. As the URL is in the client, it doesn't know on which port your Apache is running. By default, http use 80/tcp. If you want to use 88/tcp, your clients must change their ports.

I can suggest to derivatives :

  • A redirect in your Apache from 80 to 88 ( is redirected to
  • In the firewall a port redirect from 80 to 88.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.