LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   2 domains point on the same apache (https://www.linuxquestions.org/questions/linux-general-1/2-domains-point-on-the-same-apache-163640/)

dominant 03-29-2004 01:22 AM

2 domains point on the same apache
 
I have 2 domains

1: server1.server.com
2: server2.server.com

and one box that runs apache 1.x

I want to bind the ebove domains with specific folders in the Document Root

for example if my document root is the /srv/www then i want.

server1.server.com -> /srv/www/server1
server2.server.com -> /srv/www/server2

Is that practicable?

paulsm4 03-29-2004 02:04 AM

Apache VirtualHost
 
It sounds like you want to configure a "Virtual Host". Look here:

# Apache 1.3.x
http://httpd.apache.org/docs/vhosts/

# Apache 2.x
http://httpd.apache.org/docs-2.0/vhosts/

# O'Reilly tutorial
http://www.onlamp.com/pub/a/apache/2...html?page=last


All times are GMT -5. The time now is 07:22 PM.