You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Adam Warner <li...@consulting.net.nz> on 2002/09/12 12:52:17 UTC
[users@httpd] RE: Is this a VirtualHost bug? (domain matches subdomains)
Hi Boyle Owen,
> Just to be clear:
>
> - all your FQDNs resolve to the same IP address?
Yes. The same server & IP address.
> - do you have a NameVirtualHost directive for this IP?
Yes (it's in /etc/apache2/apache2.conf):
NameVirtualHost *
> - is your client using HTTP/1.1 (i.e. sending a "Host:" header)?
How else would the RewriteCond %{HTTP_HOST} ... rules work?
The main client I use is Mozilla 1.0, and HTTP/1.1 is selected in the
preferences.
> As a tip, put the IP address in the VH tag. It is the ServerName which
> is used for the Host match, e.g.
>
> <VirtualHost 192.168.1.1:80>
> ServerName domain.co.nz
> ...etc.
Yes it is the ServerName which is used for the particular host match, and
the ServerName appears to be a subdomain wildcard magnet.
Regards,
Adam
---------------------------------------------------------------------
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
Re: [users@httpd] RE: Is this a VirtualHost bug? (domain matches subdomains)
Posted by Zac Stevens <zt...@cryptocracy.com>.
On Thu, Sep 12, 2002 at 10:52:17PM +1200, Adam Warner wrote:
> Owen Boyle wrote:
> > As a tip, put the IP address in the VH tag. It is the ServerName which
> > is used for the Host match, e.g.
> >
> > <VirtualHost 192.168.1.1:80>
> > ServerName domain.co.nz
> > ...etc.
>
> Yes it is the ServerName which is used for the particular host match, and
> the ServerName appears to be a subdomain wildcard magnet.
I'm sorry if this comes as an obvious question, but have you actually
defined the VirtualHosts for each of the subdomains? Does the output of
'httpd -S' correspond to your understanding of how things should be
working?
Cheers,
Zac
---------------------------------------------------------------------
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