]> TLD Linux GIT Repositories - packages/lighttpd.git/blobdiff - mod_access.conf
- merged 1.4.48 from PLD, TLDized
[packages/lighttpd.git] / mod_access.conf
diff --git a/mod_access.conf b/mod_access.conf
new file mode 100644 (file)
index 0000000..0cf6c79
--- /dev/null
@@ -0,0 +1,20 @@
+# Access module.
+#
+# Documentation: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAccess
+
+server.modules += (
+       "mod_access"
+)
+
+## deny access the file-extensions
+#
+# ~    is for backupfiles from vi, emacs, joe, ...
+# .inc is often used for code includes which should in general not be part
+#      of the document-root
+# *,v and *,t - CVS files
+url.access-deny = ( "~", ".inc", ",v", ",t" )
+
+# forbid access to files inside CVS or RCS dirs
+$HTTP["url"] =~ "/(?:CVS|RCS)/" {
+       url.access-deny = ("")
+}