Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'advanced/lighttpd.conf.fedora')
-rw-r--r--advanced/lighttpd.conf.fedora7
1 files changed, 6 insertions, 1 deletions
diff --git a/advanced/lighttpd.conf.fedora b/advanced/lighttpd.conf.fedora
index 773f0142..27a854af 100644
--- a/advanced/lighttpd.conf.fedora
+++ b/advanced/lighttpd.conf.fedora
@@ -42,7 +42,7 @@ accesslog.format = "%{%s}t|%V|%r|%s|%b"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
-url.access-deny = ( "~", ".inc" )
+url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
@@ -85,5 +85,10 @@ $HTTP["url"] =~ "^/admin/" {
}
}
+# Block the github files from being accessible.
+$HTTP["url"] =~ "^/admin/(.git|.gitignore|.github)" {
+ url.access-deny = ("")
+}
+
# Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null"