Bug #2161
closedDoesn't support IPv4 address abbreviations
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.
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.
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.
Updated by stbuehler about 15 years ago
- Status changed from Reopened to Invalid
Updated by AMDmi3 about 15 years ago
Also available in: Atom