httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: logging servername out of http header
Date Tue, 11 Jun 2002 15:26:57 GMT

On Tue, 11 Jun 2002, Matus "fantomas" Uhlar wrote:

> -> On Tue, 11 Jun 2002, Matus "fantomas" Uhlar wrote:
> -> > You can also use %{Host}i and %r to detect what hostname was requested but
> -> > it is quite hard to parse both.
> ->
> -> Huh?  Why is %{Host}i hard to parse?  That is EXACTLY the same as what you
> -> will get by turning UsecanonicalName Off and using %V.
> what if someone requests
> GET http://host/path/ HTTP/1.0

They won't, because that would be an illegal request to an origin server
under HTTP/1.1.

> ?
> Host will be empty, while %[Vv] not and host will be in %r

(But yes, you are correct that Apache should, in that case, parse the
hostname out of the request line, rather than using the host header.  It
just makes no difference in this case, because no valid client would ever
send that.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message