Project

General

Profile

Actions

Bug #1397

closed

lighty sends 301 moved permanently if User-Agent is missing or not correct

Added by Anonymous about 17 years ago. Updated 12 months ago.

Status:
Obsolete
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:
No

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

Actions #1

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?

Actions #2

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

Actions #3

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

Actions #4

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.

Actions #5

Updated by gstrauss 12 months ago

  • Status changed from Missing Feedback to Obsolete
  • ASK QUESTIONS IN Forums set to No

lighttpd 1.5.x branch has been abandoned.

lighttpd 1.4.x branch is now far more advanced and continues to be maintained.

Actions

Also available in: Atom