Bug #548
closedhost name with an "_" apparently caused a 400 error
Description
I use /etc/hosts to alias multiple domain names to 127.0.0.1. Using lighttpd 1.4.10 on Fedora Core 4, I get the following problem, when using mod_simple_vhost and no conditionals.
1) localhost works fine.
2) most other domains aliased to 127.0.0.1 work fine.
3) a domain, cs_rc5, consistently gets a 400 Bad Request screen.
I am almost sure that that the "_" is the problem here, since I defined a new host "has_underscore", and it also gets a 400 error.
I can work around this ("don't expect host names with underscores to work"), but it's a bit annoying, nonetheless. And the 400 error doesn't give any useful help in figuring out the problem.
-- rob
Updated by moo about 19 years ago
- Status changed from New to Fixed
- Resolution set to invalid
i hit the same problem. even Chinese/GBK character works in <=IE6 + apache(much less validatation). BUT _ isn't validate character in domain name standard. u can't even register such domain at any service provider, although, u might have luck on a your bind8/9 dns server to setup a non standard sub domain and query via your isp dns in a recursion resolve. (in your case it's simply /etc/hosts)
Also available in: Atom