Actions
Bug #1089
closedVirtual host name with underscore _ leads to 400 - bad request
ASK QUESTIONS IN Forums:
Description
Environment:
- MacOS 10.4.9 on PPC
- Lighttpd 1.4.13
- PHP 5.2.1 FastCGI
Having a virtual host oxid_ee pointing to 127.0.0.1 and a lighttpd.conf entry of:
$HTTP["host"]=="oxid_ee" { server.document-root="/opt/sites/oxid_ee" }
leads to a 400 - bad request, when accessed in the browser using http://oxid_ee.
Updated by jan over 17 years ago
- Status changed from New to Fixed
- Resolution set to invalid
According to the URL RFC the underscore is not allowed in Hostnames.
The same is defined in the DNS RFC.
Allow characters are -a-z0-9. Feel free to adjust request.c and the check_hostname function.
Actions
Also available in: Atom