]> git.pld-linux.org Git - packages/apache.git/commitdiff
Add EnableSendfile on. Prevent web clients from accessing htaccess files and backup...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 3 Jul 2014 11:54:35 +0000 (13:54 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 3 Jul 2014 11:54:35 +0000 (13:54 +0200)
apache-httpd.conf

index eaec1ea171a99b537610535d5b942170bc21d310..b5783f2470d8f11a9285520e0aab682c20a2d995 100644 (file)
@@ -66,6 +66,28 @@ HostnameLookups Off
 
 TraceEnable Off
 
+#
+# EnableMMAP and EnableSendfile: On systems that support it, 
+# memory-mapping or the sendfile syscall may be used to deliver
+# files.  This usually improves server performance, but must
+# be turned off when serving from networked-mounted 
+# filesystems or if support for these functions is otherwise
+# broken on your system.
+# Defaults if commented: EnableMMAP On, EnableSendfile Off
+#
+#EnableMMAP off
+EnableSendfile on
+
+# Prevent .htaccess and .htpasswd files from being viewed by Web clients. 
+<Files ".ht*">
+    Require all denied
+</Files>
+
+# Prevent backup files from being viewed, too.
+<Files "*~">
+    Require all denied
+</Files>
+
 # Include other modules and packages config.
 IncludeOptional conf.d/*.conf
 
This page took 0.126091 seconds and 4 git commands to generate.