Bug #2520
closedMod fastcgi: 500 Internal Server Error instead of 301 when final slash is missing
Description
Hello,
I've unexpected behaviour with lighttpd 1.4.32 + fastcgi PHP on linux 3.2.29. If I comment out fastcgi module, everything goes as expected (and the behavior is the same as on "other" web server).
When I call
http://surveying/chapter01/
http://surveying/chapter02/
everything goes well as well. Error appears when calling
http://surveying/chapter01
http://surveying/chapter02
Note slash on the end of the url. For some urls, document is being supplied by web server. For some other urls (directories) internal error is being returned with no document sent. The behavior is very stable when I repeat actions and is independent on browser. It does not matter if I ask html or php document, bug seems to be random but always stuck with particular directory. I tried also restart server, but eveything goes in the same buggy way then.
Debug log and configuration files attached.
In root of web directory:
/home/surveying/www$ ls -l total 224 -rwxrwxrwx 1 stibot stibot 113637 Oct 22 14:48 SE.log drwxr-xr-x 7 stibot stibot 4096 Oct 22 14:41 _internal drwxr-xr-x 2 stibot stibot 4096 Oct 22 14:57 chapter01 drwxr-xr-x 2 stibot stibot 4096 Oct 22 15:05 chapter02 drwxr-xr-x 2 stibot stibot 4096 Sep 30 15:02 chapter03 drwxr-xr-x 2 stibot stibot 4096 Oct 1 15:30 chapter04 drwxr-xr-x 2 stibot stibot 4096 Oct 1 15:30 chapter05 drwxr-xr-x 2 stibot stibot 4096 Oct 1 15:30 chapter06 drwxr-xr-x 2 stibot stibot 4096 Oct 10 11:47 chapter07 -rw-r--r-- 1 stibot stibot 88 Oct 22 15:02 index.html.bak -rw-r--r-- 1 stibot stibot 9385 Oct 10 12:02 index.php drwxr-xr-x 2 stibot stibot 4096 Sep 25 22:23 library drwxr-xr-x 3 stibot stibot 4096 Oct 18 09:01 tests /home/surveying/www$ ls -l chapter01 chapter02 chapter01: total 0 lrwxrwxrwx 1 stibot stibot 17 Oct 22 14:57 index.html -> ../index.html.bak lrwxrwxrwx 1 stibot stibot 12 Oct 10 11:48 index.php -> ../index.php chapter02: total 0 lrwxrwxrwx 1 stibot stibot 17 Oct 22 15:05 index.html -> ../index.html.bak lrwxrwxrwx 1 stibot stibot 12 Sep 29 15:06 index.php -> ../index.php
From lighttpd.conf:
$HTTP["host"] == "surveying" { server.document-root = "/home/surveying/www/" }
Files
Updated by stbuehler over 10 years ago
- Category deleted (
mod_fastcgi) - Status changed from New to Invalid
- Target version deleted (
1.4.x)
Your fastcgi config is completely crap (they are examples!, and you should only pick one of them, not all).
One of the examples disables "check-local" - so all blame goes to the php backend in that case... (mixing different "check-local" settings for the same "extension" sounds like a bad idea...)
I think this is a config problem, not a bug - use the support forum.
Updated by smsti over 10 years ago
Seems to me you nailed it Stefan. Now no issue.
You're expert on lighttpd, for you very easy if you are author. But there are tens of technologies we've to use, lighttpd is one of them.
Regarding to this config problem, I suggest you to consider to write more comments through conf file. It might help to users and therefore will help you as well. Don't be angry with us :-) Thank you
Also available in: Atom