Bug #1397
closedlighty sends 301 moved permanently if User-Agent is missing or not correct
Description
While testing with telnet I saw that using
Get / HTTP/1.1
Host: www.test.me
does always return a 301 with location set to http://www.test.me/, so maybe creating an infinite loop. I think it shouldn't do that...
-- stefan
Updated by jrabbit about 17 years ago
You must have a configuration error - HTTP requests that only provide a Host: header work fine. Also, how on earth do you make the leap from this behaviour to the User-Agent header being a factor?
Updated by Anonymous about 17 years ago
Configuration might be a reason, however, the server runs fine otherwise. So I guess it should not behave like that. Anyway, the 'leap' I make is simple: If I add a User-Agent header, I get the normal expected behaviour, if it's missing I get the behaviour described above. My configuration includes simple vhosting through rewriting the url after checking the host.
-- stefan
Updated by admin about 17 years ago
I can't reproduce this:
GET / HTTP/1.1
Host: xwis.net
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: text/html
Accept-Ranges: bytes
ETag: "534884459"
Last-Modified: Fri, 05 Oct 2007 11:12:16 GMT
Content-Length: 1425
Date: Thu, 11 Oct 2007 13:28:46 GMT
Server: lighttpd/1.4.18
Updated by stbuehler about 16 years ago
- Status changed from New to Missing Feedback
- Pending changed from Yes to No
- Patch available set to No
Probably config mistake, but config is missing so we cannot help.
Also available in: Atom