You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/08/23 10:52:23 UTC
DO NOT REPLY [Bug 51709] ServerName/ServerAlias don't work if Host:
header from HTTP request matches VirtualHost address
https://issues.apache.org/bugzilla/show_bug.cgi?id=51709
--- Comment #1 from Micha Lenk <mi...@lenk.info> 2011-08-23 08:52:23 UTC ---
Created attachment 27423
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27423
Fix for function check_hostalias()
Please find attached my patch for check_hostalias(). I tried to stick to
the idea to do the ServerName and ServerAlias check only once for each
server. Also for this reason the result is in the end merely a rewrite
of this function. I hope though that it is clear enough how it is
intended to work.
However, I believe the fix is yet incomplete. The function
ap_matches_request_vhost() used by modules like mod_proxy seems to
implement the virtual host check in the wrong order too.
See the dev mailinglist for more comments.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org