I have a lighttpd-Setup pointing to the document-root /var/www
. However, I want the URL other/
to point to /some/other/dir
. This I'm doing with the following config:
$HTTP["url"] =~ "^/other($|/)" {
server.document-root = "/some/other/dir"
}
However, if I access 'http://myhost/other', lighttpd tries to access /some/other/dir/other
instead of just /some/other/dir
. Is it possible to somehow strip the /other
but keep any further URL segments? So for instance, http://myhost/other/sub/foo.txt
should point to /some/other/dir/sub/foo.txt
.