Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: //mysite.com:8080/foo

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

1 Answer 1

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

/var/www/cms
/var/www/statistics
/var/www/foo

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 httpd.apache.org/docs/2.0/vhosts/name-based.html and httpd.apache.org/docs/2.0/vhosts/ip-based.html –  Khaled Feb 6 '11 at 11:42

Your Answer

 
discard

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.