summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2007-07-30 17:46:28 +0000
committerBenedikt Boehm <hollow@gentoo.org>2007-07-30 17:46:28 +0000
commita7d1452f09231c44169fa3c6cb27d0ff169b779d (patch)
treea703b71a89b5d613460138b26dc5e89e498d64ee /2.2/conf/modules.d
parent/etc/apache2/suexec-conf has been integrated into the apache ebuild. (diff)
downloadapache-a7d1452f09231c44169fa3c6cb27d0ff169b779d.tar.gz
apache-a7d1452f09231c44169fa3c6cb27d0ff169b779d.tar.bz2
apache-a7d1452f09231c44169fa3c6cb27d0ff169b779d.zip
move the last stuff to modules.d, noone should ever need to edit httpd.conf now
Diffstat (limited to '2.2/conf/modules.d')
-rw-r--r--2.2/conf/modules.d/00_default_settings.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/2.2/conf/modules.d/00_default_settings.conf b/2.2/conf/modules.d/00_default_settings.conf
index 37e9422..6c1ffce 100644
--- a/2.2/conf/modules.d/00_default_settings.conf
+++ b/2.2/conf/modules.d/00_default_settings.conf
@@ -62,4 +62,32 @@ HostnameLookups Off
#EnableMMAP off
#EnableSendfile off
+# We configure the "default" to be a very restrictive set of features.
+<Directory />
+ Options FollowSymLinks
+ AllowOverride None
+ Order deny,allow
+ Deny from all
+</Directory>
+
+# DirectoryIndex: sets the file that Apache will serve if a directory
+# is requested.
+#
+# The index.html.var file (a type-map) is used to deliver content-
+# negotiated documents. The MultiViews Options can be used for the
+# same purpose, but it is much slower.
+#
+# To add files to that list use AddDirectoryIndex in a custom config
+# file. Do not change this entry unless you know what you are doing.
+<IfModule dir_module>
+ DirectoryIndex index.html index.html.var
+</IfModule>
+
+# The following lines prevent .htaccess and .htpasswd files from being
+# viewed by Web clients.
+<FilesMatch "^\.ht">
+ Order allow,deny
+ Deny from all
+</FilesMatch>
+
# vim: ts=4 filetype=apache