[Solved] Unexpected index-files module behavior
Added by grobu about 1 month ago
Hello,
lighttpd 1.4.69 on a Debian 12 server. I've created a new config file from scratch and put :
server.modules = ( "mod_accesslog", "mod_indexfile" ) (snip) index-file.names = ( "index.txt" )
But every request results in a "403 Forbidden" error, unless I explicitly add "/index.txt" :
wget -O - 'http://myserver/' --2025-02-14 13:57:13-- http://myserver/ Resolving myserver (myserver)... [SOME IP] Connecting to myserver (myserver)|SOME IP|:80... connected. HTTP request sent, awaiting response... 403 Forbidden 2025-02-14 13:57:13 ERROR 403: Forbidden. wget -O - 'http://myserver/index.txt' --2025-02-14 13:57:21-- http://myserver/index.txt Resolving myserver (myserver)... [SOME IP] Connecting to myserver (myserver)|SOME IP|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 52 [text/plain] Saving to: ‘STDOUT’
Is there something I've overlooked in the configuration file?
Thanks in advance
Replies (1)
RE: Unexpected index-files module behavior [SOLVED] - Added by grobu about 1 month ago
Really sorry about this silly post.
It turned out that the /etc/lighttpd/conf-available/99-unconfigured.conf
file was linked into conf-enabled.
It contains the directive index-file.names := ( "index.php", "index.html", "index.lighttpd.html" )
, which took precedence over mine.
Sorry for the noise!
Cheers.