Project

General

Profile

Feature #1493

non latin URLs, or custom "bad request" page

Added by Anonymous over 11 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

History

#1

Updated by darix over 11 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.

#2

Updated by Anonymous over 11 years ago

Thanks!

-- k.andris

#3

Updated by Anonymous over 11 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

#4

Updated by darix over 11 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.

#5

Updated by Anonymous over 11 years ago

This mod_magnet looks promising.... Thanks again.

-- k.andris

#6

Updated by darix over 11 years ago

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

#7

Updated by darix over 11 years ago

mod_magnet would not see the badrequest either.

#8

Updated by Anonymous over 11 years ago

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

-- k.andris

#9

Updated by stbuehler almost 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom