Project

General

Profile

Actions

Bug #2161

closed

Doesn't support IPv4 address abbreviations

Added by AMDmi3 about 15 years ago. Updated almost 15 years ago.

Status:
Invalid
Priority:
Low
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:

Description

IPv4 addresses may be abbreviated, i.e. 127.1 for 127.0.0.1, however lighttpd doesn't support this, answering with "400 Bad Request" for requests with "Host: 127.1" header. As far as I know, this way of address abbreviation is not documented in e.g. any RFC, so the server may not really be required to understand 127.1 as a valid address (and e.g. convert it to 127.0.0.1), but the fact that lighttpd with default setup (no virtual hosts) will accept any non-existing domain or invalid (but well-formed) IP like 255.255.255.255, but will not accept 127.1 seems like a bug for me.

Actions #1

Updated by nitrox about 15 years ago

  • Status changed from New to Invalid

Either point us to the corresponding RFC or I fear you have to live with the current behaviour. We´ll not change sth. thats not documented or is not common use.

Actions #2

Updated by AMDmi3 about 15 years ago

  • Status changed from Invalid to Reopened

Either point us to the corresponding RFC

It is documented in `man inet` in at least FreeBSD and some Linux distros (Debian). Not sure what is the original source.

or I fear you have to live with the current behaviour

Then could you at least clarify why lighttpd rejects 127.1 in a Host: header while allowing other garbage? It feels like a synthetic limitation without any real reason.

Actions #3

Updated by stbuehler about 15 years ago

  • Status changed from Reopened to Invalid
Actions #4

Updated by AMDmi3 about 15 years ago

stbuehler wrote:

http://tools.ietf.org/html/rfc3986#section-7.4

Ok, agreed. Thanks.

Actions #5

Updated by stbuehler almost 15 years ago

  • Target version deleted (1.4.x)
Actions

Also available in: Atom