Actions
Bug #1878
closedWhether nested conditions work correctly depends on their orders
ASK QUESTIONS IN Forums:
Description
hi, when the lighttpd configuration is like this:
server.document-root = "/home/work/lighttpd-1.5/htdocs" htdoc1 = "/home/work/lighttpd-1.5/htdocs/1" dir-listing.activate = "enable" $HTTP["useragent"] =~ "Mozilla" { $HTTP["url"] =~ "/static" { server.document-root = var.htdoc1 } }
It works. I access "http://..../static/", then the browser displays the directory structure of "/home/work/lighttpd-1.5/htdocs/1/static/"
However, when I exchange the positions of $HTTP["useragent"] and $HTTP["url"], as shown below, It doesn't work. The value of "server.document-root" doesn't change, it's still "/home/work/lighttpd-1.5/htdocs"
server.document-root = "/home/work/lighttpd-1.5/htdocs" htdoc1 = "/home/work/lighttpd-1.5/htdocs/1" dir-listing.activate = "enable" $HTTP["url"] =~ "/static" { $HTTP["useragent"] =~ "Mozilla" { server.document-root = var.htdoc1 } }
Actions
Also available in: Atom