Project

General

Profile

Actions

Bug #1089

closed

Virtual host name with underscore _ leads to 400 - bad request

Added by Anonymous about 17 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
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.

Actions #1

Updated by jan about 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 #2

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom