{"id":107,"date":"2012-02-03T01:37:55","date_gmt":"2012-02-03T01:37:55","guid":{"rendered":"http:\/\/technese.com\/?p=107"},"modified":"2019-12-28T03:50:06","modified_gmt":"2019-12-28T03:50:06","slug":"lighttpd-enable-or-disable-directory-listing","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2012\/02\/03\/lighttpd-enable-or-disable-directory-listing\/","title":{"rendered":"lighttpd &#8211; enable or disable directory listing individually"},"content":{"rendered":"\n<p>Edit lighttpd.conf<\/p>\n<p>Note: You may also remove (|$|\/) to allow a wildcard|||<\/p>\n<p>Enable directory listing for \/foldername\/<\/p>\n<p>$HTTP[&#8220;url&#8221;] =~ &#8220;^\/foldername(|$|\/)|&#8221; { dir-listing.activate = &#8220;enable&#8221; }<\/p>\n<p>OR<\/p>\n<p>Disable directory listing for \/foldername\/<\/p>\n<p>$HTTP[&#8220;url&#8221;] =~ &#8220;^\/foldername(|$|\/)|&#8221; {dir-listing.activate = &#8220;disable&#8221; }<\/p>\n<p>#Restart lighttpd<br><pre><code>$ \/etc\/init.d\/lighttpd restart<\/code><\/pre><\/p>\n<p>Source:<br><a href=\"http:\/\/www.cyberciti.biz\/tips\/howto-lighttpd-enable-disable-directory-listing.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.cyberciti.biz\/tips\/howto-lighttpd-enable-disable-directory-listing.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit lighttpd.conf Note: You may also remove (|$|\/) to allow a wildcard||| Enable directory listing for \/foldername\/ $HTTP[&#8220;url&#8221;] =~ &#8220;^\/foldername(|$|\/)|&#8221; { dir-listing.activate = &#8220;enable&#8221; } OR Disable directory listing for \/foldername\/ $HTTP[&#8220;url&#8221;] =~ &#8220;^\/foldername(|$|\/)|&#8221; {dir-listing.activate = &#8220;disable&#8221; } #Restart lighttpd $ \/etc\/init.d\/lighttpd restart Source:http:\/\/www.cyberciti.biz\/tips\/howto-lighttpd-enable-disable-directory-listing.html<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":10,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}