Lighttpd中的目录浏览

From Yefu's notes
Jump to: navigation, search

在 lighttpd.conf中:

1. 开启所有目录的目录浏览

dir-listing.activate = "enable"

2. 开启特定目录的目录浏览

$HTTP["url"] =~ "^/upload($|/)" {
    dir-listing.activate = "enable"
}

3. 开启所有目录,关闭特定目录的目录浏览

dir-listing.activate = "enable"
$HTTP["url"] =~ "^/www($|/)" {
    dir-listing.activate = "disable"
}