For a directory index I set the default index file name to an absolute path in the lighttpd conf file:
index-file.names += ( "index.html", "index.php", "/_h5ai/server/php/index.php" )
Inside this /_h5ai/server/php/index.php
script I try to find the URL to the script itself with
$path = getenv("SCRIPT_NAME");
This works fine in Apache httpd, nginx and Cherokee. They resolve it to something like /_h5ai/server/php/index.php
. But lighttpd resolves it to the current URL, e.g. /abc/
, plus this absolute path: /abc//_h5ai/server/php/index.php
.
Any ideas how to fix this in lighttpd?
- see it in context: this is the critical line on GitHub
- the tool itself: it's h5ai, but the demo is served from Apache httpd
update
already tried PHP option cgi.fix_pathinfo = 1
, doesn't work :(