Project

General

Profile

Actions

Bug #1524

closed

All files get served as application/octet-stream in 1.5 svn when comgined with a $SERVER["socket"] == ":8001"

Added by Anonymous almost 17 years ago. Updated 11 months ago.

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

Description

When I get Lighttpd 1.5 to serve of a single port everything is fine. When I look at a lighty generated directory listing in the browser, all mimes are correct, and clicking a file, for example an image will open it in the browser as expected.

But as soon as I serve of multiple ports, by disabling the 'bind to port 80' setting, and having two blocks like so:

$SERVERsocket ":80" { }
$SERVERsocket ":8001" { }

and set one of the blocks to point to another folder, now looking at the directory listing on localhost:8001 in the web browser shows all files as having the mime of application/octet stream, and attempting to open any of these files, will trigger a download instead.

- This only happens in 1.5, 1.4 is fine.
- This only happens when you use $SERVER[[socket]] blocks to serve of two different ports, i.e. 80 and 443.

-- robvdl

Actions #1

Updated by Anonymous almost 17 years ago

I noticed that this also actually happens if you bind to port 8001 only, but not bind to port 80 only, which is really strange. You don't need to serve of two ports, for this bug to happen, just serve of port 8001.

I am using Ubuntu Gutsy 64 bit, and Lighttpd 1.5 svn.

-- robvdl

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to worksforme

Firefox caches too much, use curl for testing. If it still doesn't work, paste complete config which triggers the problem. As i don't believe that, i close the bug that.

Actions #3

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Missing Feedback
Actions #4

Updated by gstrauss 11 months ago

  • Description updated (diff)
  • 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