$HTTP['url'] inside $HTTP['host']
Added by vedranf over 15 years ago
Hi! I have:
$HTTP["host"] =~ "(^|\.)domain\.tld" {
server.document-root = "/path/to/www/"
$HTTP["url"] !~ "foobar" {
<fastcgi suff>
}
}
And this doesn't work. I always get directory listing no matter what is in URL. Fastcgi stuff is always ignored.
Did I misunderstood something? I want to get "fastcgi processed" page always, except for some special URL.
I use 1.4.19 on debian.
Regards,
Vedran
Replies (3)
RE: $HTTP['url'] inside $HTTP['host'] - Added by nitrox over 15 years ago
We have debug.log-request-handling = "enable" - together with some other debug variables this should give you some hints on whats going on. See your error.log and adapt your config.
Else we have #lighttpd on irc.freenode.net - just make sure you update this post if you got a solution there.
RE: $HTTP['url'] inside $HTTP['host'] - Added by vedranf over 15 years ago
Thanks for response.
I've added debug.log-request-handling = "enable", but haven't seen anything special, only few lines in this style:
(response.c.434) Doc-Root : /path/to/www/
It seems that this was a bug:
http://redmine.lighttpd.net/issues/41
fixed few years ago. But for me it is still open.
RE: $HTTP['url'] inside $HTTP['host'] - Added by vedranf over 15 years ago
I had url rewrite inside of $HTTP['url'] and that doesn't work:
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite