Bug #1524
closedAll files get served as application/octet-stream in 1.5 svn when comgined with a $SERVER["socket"] == ":8001"
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
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
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.
Updated by stbuehler about 16 years ago
- Status changed from Fixed to Missing Feedback
Also available in: Atom