httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Leangen <ht...@leangen.net>
Subject RE: [users@httpd] Name-based virtual hosts not working as expected
Date Mon, 31 Jul 2006 06:40:41 GMT

Thanks again. Reply below.

> > > > I must have misunderstood something in the docs. The 
> > following is not
> > > > working as I expect it to.
> > > > 
> > > > In httpd.conf:
> > > > 
> > > > NameVirtualHost *:80
> > > > Include conf/otherdomain.conf
> > > > Include conf/mydomain.conf
> > > > 
> > > > 
> > > > In mydomain.conf:
> > > > 
> > > > <VirtualHost *:80>
> > > >   ServerName www.mydomain.com
> > > >   ServerAlias mydomain.com
> > > >   DocumentRoot /var/www/html
> > > > </VirtualHost>
> > > > 
> > > > # Other stuff
> > > > <VirtualHost *:80>
> > > >   ServerName other.mydomain.html
> > > >   DocumentRoot /var/www/other
> > > > </VirtualHost>
> > > > 
> > > > # Catch all other domains
> > > > <VirtualHost *:80>
> > > >   ServerName www.mydomain.com
> > > >   ServerAlias *.mydomain.com
> > > >   DocumentRoot /var/www/html
> > > > </VirtualHost>
> > > > 
> > > > 
> > > > In otherdomain.conf:
> > > 
> > > Are you sure this is being included? Put in a syntax error 
> > and check it
> > > is detected...
> > 
> > Yep. But to be sure, I did as you suggested and indeed I got a syntax
> > error upon restart of apache.
> 
> Than are all the domain names resolving to the same IP 

Yes, they are.


> (would be easier
> to check if you didn't obfuscate everythign...

:-)

I could send privately, if necessary.

Thanks again!
David




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