Project

General

Profile

Actions

Feature #1493

closed

non latin URLs, or custom "bad request" page

Added by Anonymous almost 17 years ago. Updated about 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

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.

Actions #2

Updated by Anonymous almost 17 years ago

Thanks!

-- k.andris

Actions #3

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

Actions #4

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.

Actions #5

Updated by Anonymous almost 17 years ago

This mod_magnet looks promising.... Thanks again.

-- k.andris

Actions #6

Updated by darix almost 17 years ago

you mix up 404 (not found) with 500 (bad request)

Actions #7

Updated by darix almost 17 years ago

mod_magnet would not see the badrequest either.

Actions #8

Updated by Anonymous almost 17 years ago

Well it's understandable, but :-( Bye.

-- k.andris

Actions #9

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom