that’s because the virtual host “dhcp.lan” serves different content than “reforis” or “luci”.
I wanted to have a service that lists the content of /tmp/dhcp.leases.
I found out that the issue is in the file 90-turris-root.conf, specifically alias.url += ("/" => "/www/turris-webapps/") so I moved the line into the $HTTP[“host”] =~ “turris.lan” and here we go!
The lighttpd -tt is very powerful tool to test it , too!
Comment: the else in lighttpd.conf doesn’t work even if official version of lighttpd shall support it.
@edison_cz: the else in lighttpd.conf works. (Source: I am a lighttpd developer.) If your syntax is incorrect, then it might not work, but you have not shared your syntax. lighttpd -p -f /etc/lighttpd/lighttpd.conf will show you the entire lighttpd configuration (including config generated by include_shell scripts) which lighttpd sees.
Back on topic, to override the Turris-provided config which sets alias.url in the lighttpd.conf global scope, you can define your own override to clear the aliases (along with the rest of your config, omitted here):