You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@ooo.lanl.gov> on 1996/04/21 20:21:00 UTC

Re: virtual hosts failing (fwd)

Info from the admins who configured the virtual hosts
that stopped working temporariliy....


> > What I did was as follows:
> 
> > Originally....
> 
> > olive/movie.pcug.co.uk pointed to docs  IP 60
> 
> > uk.imdb.com pointed to docs/Movies  IP 59
> 
> > www.imdb.com pointed to toe user directory ~movieh/www  IP 58
> 
> > servername was movie.pcug.co.uk
> 
> > Virtual hosts for the second 2.  Note the problem may have been that the
> > machine is olive with a cname of movie?
> 
> not cnames,  olive is 60
> and movie is 59
> 
> > Then changed to
> 
> > Servername uk.imdb.com
> 
> > and ALL 3 as virtual hosts
> 
> > with uk.imdb.com and the main server pointing at html to make it the
> > same as us.imdb.com.
> 
> > This seems to work.  Nothing else was changed ont he setup.
 

Re: virtual hosts failing (fwd)

Posted by Brian Behlendorf <br...@organic.com>.
On Sun, 21 Apr 1996, Alexei Kosut wrote:
> Here's the problem.. if I do a "host movie.pcug.co.uk":
> 
> movie.pcug.co.uk        CNAME   www.uk.imdb.org
> www.uk.imdb.org         CNAME   uk.imdb.org
> uk.imdb.org             A       192.68.174.59
> 
> Therefore, the uk.imdb.com virtualhost was the same IP as the main
> server, so it got ignored except for the Host-generating
> browsers. I'd call the original config wrong, as it had a virtual host
> and main server pointing to the same IP address. The fix that he did
> is fine, or he could have changed the main ServerName to
> olive.pcug.co.uk.
> 
> Apache's working exactly as it's supposed to, therefore, it's just
> your configuration that was a bit screwed up.

I thought CNAMEs to CNAMEs were illegal?

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  |  We're hiring!  http://www.organic.com/Home/Info/Jobs/


Re: virtual hosts failing (fwd)

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Sun, 21 Apr 1996, Rob Hartill wrote:

> > > uk.imdb.com pointed to docs/Movies  IP 59

> > > servername was movie.pcug.co.uk

Here's the problem.. if I do a "host movie.pcug.co.uk":

movie.pcug.co.uk        CNAME   www.uk.imdb.org
www.uk.imdb.org         CNAME   uk.imdb.org
uk.imdb.org             A       192.68.174.59

Therefore, the uk.imdb.com virtualhost was the same IP as the main
server, so it got ignored except for the Host-generating
browsers. I'd call the original config wrong, as it had a virtual host
and main server pointing to the same IP address. The fix that he did
is fine, or he could have changed the main ServerName to
olive.pcug.co.uk.

Apache's working exactly as it's supposed to, therefore, it's just
your configuration that was a bit screwed up.

--
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>    
URL: http://www.nueva.pvt.k12.ca.us/~akosut/  
Lefler on IRC, DALnet <http://www.dal.net/>