lighttpd – enable or disable directory listing individually
By technese - Last updated: Friday, February 3, 2012 - Save & Share - Leave a Comment
Edit lighttpd.conf
Note: You may also remove (|$|/) to allow a wildcard|||
Enable directory listing for /foldername/
$HTTP[“url”] =~ “^/foldername(|$|/)|” { dir-listing.activate = “enable” }
OR
Disable directory listing for /foldername/
$HTTP[“url”] =~ “^/foldername(|$|/)|” {dir-listing.activate = “disable” }
#Restart lighttpd
$ /etc/init.d/lighttpd restart
Source:
http://www.cyberciti.biz/tips/howto-lighttpd-enable-disable-directory-listing.html
Posted in General • • Top Of Page