https://issues.apache.org/bugzilla/show_bug.cgi?id=57384

--- Comment #2 from [email protected] ---
> If you omit the servername, it's calculated from the system hostname 
> (double-reverse DNS lookup of the system hostname).  

But I'm NOT omitting it.
If I do a request without any host, or with a host that does not match any
virtual host, I get the default host, that's the expected part.

But I do a request to matteosistisette.com, e.g. a "GET /" request with "Host:
matteosistisette.com" in the header (I've checked in the browser's developer
tools and the header _is_ present). So, it should hit the virtualhost that has
ServerName matteosistisette.com rather than the default one.


> The docs do not get this exactly right.

Then at least the docs must be fixed. Everything I read in the docs, and even
the tutorial, are pretty clear in (wrongly) suggesting that a VirtualHost
definition whose ServerName matches the host being requested will be used, and
that is not the case. I still don't understand why it shouldn't prevail over
the default, but alas, it's very important that it is documented.


Wait a moment,
"I think it is necessary for the user to explicitly provide an alternative
ServerName in this case"
Are you talking about specifying a ServerName in the definition of the default
site? How would that produce the desired result?
Suppose the client requests the IP directly, or a host that (through DNS)
points to the server but doesn't match the servername of any vhost (not even
the default's one). How is it that this would hit the default vhost??

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to