httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Schrauwen <jorge.schrau...@gmail.com>
Subject Re: [users@httpd] Matching an empty hostname with virtual hosting
Date Wed, 02 Jun 2010 22:20:24 GMT
If the host-header is missing, httpd will use the first vhost that is
defined.
So if you need to catch request with no host-header, configure the vhost
that does so as the first one.

running httpd -S will also show you the current default vhost.

~Jorge


On Wed, Jun 2, 2010 at 10:28 PM, Ruslan Sivak <russ@vshift.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hi All,
>
> I have virtual hosting set up and working, but I'm having trouble
> getting health checks from the load balancer to go to their own vhost.
>
> The load balancer just sends this request:
>
> Head / HTTP/1.0
>
> This results in no host header being sent, and these requests are going
> to the wrong vhost - one where I have ServerAlias *
>
> How do I match against an empty vhost?  Also apach seems to be reverse
> dnsing these requests somehow and gets weird random hostnames from sites
> that we host for these requests.
>
> Any help would be appreciated,
>
> Russ
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iD8DBQFMBr77GUZBYlCheYcRApp7AKDldFJZpXHG+2VU+iogLHdb3jszWgCdH43e
> 5FWcZdzQS7lUVTiOtQ2hSyc=
> =LYGj
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> 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