RE: [users@httpd] Name-based virtual hosts not working as expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: David Leangen [mailto:httpd@xxxxxxxxxxx] 
> Sent: Monday, July 31, 2006 8:26 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] Name-based virtual hosts not 
> working as expected
> 
> 
> Thank you for the suggestion. Reply inline 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 (would be easier
to check if you didn't obfuscate everythign...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Cheers,
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux