Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

If I have a site hosted on port 8080, so

http: //mysite:8080

and I have 3 components to the site I'd like to access from that port,

http: //mysite:8080/cms, http: //mysite:8080/statistics, http: //

how would I set that up using Apache, so that each (cms/statistics/foo) point to different directories in my Linux server?

(had to add spaces after http: cause I'm new and can't include links)

share|improve this question

You can simply create three directories under the apache root directory. For example, you can create:


Assuming the apache root is /var/www/.

share|improve this answer
There are more complicated scenarios, but this depends on your needs. – Khaled Feb 6 '11 at 8:24
how can i setup a virtual host at that point? if i set up 3 parallel ones, it will only assign the last <VirtualHost *:8080> to port 8080 – tipu Feb 6 '11 at 9:30
If you want to setup virtual hosts, you can see and – Khaled Feb 6 '11 at 11:42

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.