httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micha Lenk <mi...@lenk.info>
Subject Re: With IP address in Host: header ServerName/ServerAlias doesn't work
Date Mon, 22 Aug 2011 16:58:54 GMT
Hi Nick,

On 08/22/2011 06:45 PM CEST +02:00, Nick Kew wrote:
> On Mon, 22 Aug 2011 18:27:10 +0200
> Micha Lenk <micha@lenk.info> wrote:
> 
>> In the case I described earlier, *only* the virtual server v2 has a
>> ServerName that matches the requested hostname.
> 
> No it doesn't.  ServerName or ServerAlias arguments are just strings,
> so the :80 makes it a non-match.

Which ':80' do you mean? The port of the Host: header is stripped from
the request_rec.hostname by calling fix_hostname(r) in
ap_update_vhost_from_headers() before doing any string comparisons...

Regards,
Micha

Mime
View raw message