httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject apache 0.7.1 and virtualhost problems
Date Tue, 06 Jun 1995 08:51:34 GMT

Oy - tried setting up 0.7.1 on hyperreal and ran into a snag with 
virtual hosts.  At first all was well, http://hyperreal.com/ returned 
hyperreal's home page and http://www.apache.org/ apache's home page, but 
when I went back to http://hyperreal.com/ I got the apache home page, but 
with a couple inlined missing (with half the requests being registered as 
hits to www.apache.org and the other half hits to hyperreal.com).  
I went back to www.apache.org, that worked fine, then back to 
hyperreal.com and now everything looked and worked like www.apache.org

My analysis is that some global variable in the virtual host code gets set 
with the idea that this is a forking server, and when the first request 
for each child comes through the www.apache.org IP number, that global is 
set to www.apache.org and doesn't change back.  DocumentRoot, maybe?

There is a short-term solution, though - set a VirtualHost directive for 
the *real* host.  For example, I didn't have a VirtualHost setup for 
hyperreal.com, but now I do, and it all works.  So, those of you out 
there with VH code knowlege, we need to fix this, and at least document 
it now.

Now to try installing this on links.net....

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/


Mime
View raw message