Sounds like you want to use Virtual Directories. I run Apache 1.3 under
RH7.2. Check out your /etc/httpd/conf/httpd.conf file and look for the
Virtual Hosts section - it's pretty easy to set up as long as you have
all your DNS info properly set up. Apache will detect which domain name
is being requested, and will feed up the correct site based upon your
settings (DocumentRoot defines the site's location). Not sure if Apache
2.0 is different, but probably not much. 

Here's mine:

<VirtualHost *>
        ServerName www.securityleak.net
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /var/www/html
        ErrorLog logs/www.securityleak.net/error_log
        CustomLog logs/www.securityleak.net/access_log common
</VirtualHost>

<VirtualHost *>
        ServerName www.fragalicious-design.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /var/www/html/fragalicious
        ErrorLog logs/www.fragalicious-design.com/error_log
        CustomLog logs/www.fragalicious-design.com/access_log common
</VirtualHost>

<VirtualHost *>
        ServerName www.gregg-giles.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /var/www/html/gregg
        ErrorLog logs/www.gregg-giles.com/error_log
        CustomLog logs/www.gregg-giles.com/access_log common
</VirtualHost>

<VirtualHost *>
        ServerName www.pacificbluemedia.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /var/www/html/pacificblue
        ErrorLog logs/www.pacificbluemedia.com/error_log
        CustomLog logs/www.pacificbluemedia.com/access_log common
</VirtualHost>

<VirtualHost *>
        ServerName www.securityleak.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /var/www/html/slm
        ErrorLog logs/www.securityleak.com/error_log
        CustomLog logs/www.securityleak.com/access_log common
</VirtualHost>



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
John Hunter
Sent: Monday, June 24, 2002 9:05 AM
To: [EMAIL PROTECTED]
Subject: [bits] hosting two roots in apache


I am running an apache server (RHL7.1 default, don't kill me) and want
to host two root dirs.  So if someone requests

host1.edu (maps to 128.135.97.130) they get root dir 1
host2.edu (maps to 128.135.97.130) they get root dir 2

Maybe root dir is the wrong terminology -- virtual server?

Anyway, I hear this is easy to do in apache, so I humbly seek advice
from The Group Brain.

JDH

_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits



_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to