https://issues.apache.org/bugzilla/show_bug.cgi?id=52859
Bug #: 52859
Summary: Apache will not return a custom error page on a 400
with a malformed host header
Product: Apache httpd-2
Version: 2.2.20
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: All
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I have added the following line to a site:
ErrorDocument 400 /somepage.php
When a request comes in with a 400 error code (can test by going to
http:\\site.com\test%test), it redirects fine. However, if there is a malformed
host header, it will not go to the custom page - just the default 400 page.
This is not that easy to test. In Windows you can use Wfetch and add a bad
header... for example "Host: blablablabla.net", not sure how to test elsewhere.
If I change from the above ErrorDocument to a string -
ErrorDocument 400 "test text"
Apache will print the above text in any situation - the above URL or (and most
importantly) a bad host header.
I have asked for help from many places and I just can't get an answer, and due
to the fact that the string works on either, I can only conclude that this is a
bug.
--
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: [email protected]
For additional commands, e-mail: [email protected]