httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Steffler <cr...@steffler.net>
Subject [users@httpd] VirtualHost qeustion
Date Thu, 03 Jul 2003 13:55:01 GMT
I have 3 domains going to the same system and am using the VirtualHost
directives for 2 of the 3 domains.

The problem I'm having is that all 3 sites all point to the main site
instead of their specific sites.

The excerpt from my httpd.conf has:
<VirtualHost 10.0.0.50>
        ServerAdmin serveradmin@domain2.com
        DocumentRoot /usr/local/httpd/htdocs/domain2
        ServerName www.domain2.com
        ErrorLog /var/log/httpd/error_log
</VirtualHost>

<VirtualHost 10.0.0.51>
        ServerAdmin serveradmin@domain3.com
        DocumentRoot /usr/local/httpd/htdocs/domain3
        ServerName www.domain3.xom
        ErrorLog /var/log/httpd/error_log
</VirtualHost>

I've done the DNS to point to the proper address. I've included the
references in the /etc/hosts file.
I've also done the following:
ifconfig eth0:0 10.0.0.50
ifconfig eth0:1 10.0.0.51
route add -host 10.0.0.50 dev eth0:0
route add -host 10.0.0.51 dev eth0:1

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message