Feature #1493
closednon latin URLs, or custom "bad request" page
Description
We'd like to use non english languge characters in our subdomain names. Like http://nyíregyháza.konyvtar.info (actual URL). Browsers should use the IDNA standard to encode theese URLs, Firefox does, but IE6 does not. Somehow the request gets to our server (wildcard domain), but lighttpd rejects it with "bad request" becasue the Host header contains no-us characters. Could we have a setting to accept those, or have a custom error-400 page to handle it by ourselves?
-- k.andris
Updated by darix almost 17 years ago
- Status changed from New to Fixed
- Resolution set to invalid
read up about server.errorfile-prefix and conditional configuration at http://trac.lighttpd.net/trac/wiki/Docs.
Updated by Anonymous almost 17 years ago
I did so. The problem is, that the subdomain names are coming from a database (they are city names) - so they are not static, therfor I cannot create static error pages for all of them. Is 404 special, so it can have a .php error handler?
-- k.andris
Updated by darix almost 17 years ago
404-handler is just a cheap workaround for the apache -d/-f rewrite conditions. this can now solved be more cleanly in mod_magnet (see http://pixel.global-banlist.de/tags/mod_magnet).
I think for bad request you can only have static error pages.
Updated by Anonymous almost 17 years ago
This mod_magnet looks promising.... Thanks again.
-- k.andris
Updated by darix almost 17 years ago
you mix up 404 (not found) with 500 (bad request)
Updated by darix almost 17 years ago
mod_magnet would not see the badrequest either.
Updated by Anonymous almost 17 years ago
Well it's understandable, but :-( Bye.
-- k.andris
Also available in: Atom