Project

General

Profile

Actions

Bug #1878

closed

Whether nested conditions work correctly depends on their orders

Added by liming almost 16 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Normal
Category:
core
Target version:
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 #1

Updated by gstrauss over 8 years ago

  • Missing in 1.5.x set to Yes
Actions #2

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom