httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K. Rattai" <ke...@uveais.ca>
Subject [users@httpd] More Virtual Hosts problems
Date Sun, 11 Jul 2004 00:18:52 GMT
Yes, I somehow feel that I've read every document out there that shows how to set up virtual
hosts and yet I cannot get them to work.  They all end up at the same (default) host page.

The virtual hosts are set up as follows:

NameVirtualHost 206.45.113.166

# Virtual host Default Virtual Host
<VirtualHost 206.45.113.166>
ServerAdmin webmaster@yia.ca
</VirtualHost>

# Virtual host apache.yia.ca
<VirtualHost 206.45.113.166>
DocumentRoot /var/www/html/
ServerAdmin webmaster@yia.ca
ServerName apache.yia.ca
ServerAlias apache.yia.ca
</VirtualHost>

# Virtual host alt.yia.ca
<VirtualHost 206.45.113.166>
DocumentRoot /var/www/html/test/ 
ServerAdmin webmaster@yia.ca
ServerName alt.yia.ca
ServerAlias alt.yia.ca
</VirtualHost>

The DocumentRoot paths are of no consequence, as I'm simply trying to get the darned thing
working right.

I thought that perhaps the name was not being passed through, but the log file shows proper
requests:

206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET / HTTP/1.1" 403 3947 "-"
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316"
206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET /icons/powered_by_wb.png
HTTP/1.1" 200 1189 "http://apache.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7b) Gecko/20040316"
206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET /icons/apache_pb2.gif
HTTP/1.1" 200 2414 "http://apache.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7b) Gecko/20040316"
206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:22 -0500] "GET / HTTP/1.1" 403 3947 "-"
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316"
206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:23 -0500] "GET /icons/powered_by_wb.png
HTTP/1.1" 200 1189 "http://alt.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b)
Gecko/20040316"
206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:23 -0500] "GET /icons/apache_pb2.gif
HTTP/1.1" 200 2414 "http://alt.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b)
Gecko/20040316"

I've used the WhiteBox Linux apache config tool, I've manually made the changes and nothing
seems to work.

Yes, I have restarted the server after every change.

Yes, the DNS is all set to point to the server at 206.45.113.166.  I keep hearing about this
whole bit about "no main server used" and setting the IP:port the same for all virtual hosts.
 I'm not sure I understand what that first bit means and the second bit is never done with
the Apache config tool, so I make the changes manually then restart.

I do run through a smoothwall router, but as mentioned, the requests do appear to be received
properly at the apache end, as per the log files.

Any suggestions?  (Aside from not giving up my day job?)

Kevin



---------------------------------------------------------------------
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