X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=apache-common.conf;h=085c5e7ef242e475e2b4aa970cbc154e200d5737;hb=d62c37394b190fcb5efd5b3cabc8a09179a34974;hp=05686e9666a584d6725887cd3a9bf8424e295489;hpb=03fa0e1eac0d3851c5ae1ab08a02cc3a5ee4eb69;p=packages%2Fapache.git
diff --git a/apache-common.conf b/apache-common.conf
index 05686e9..085c5e7 100644
--- a/apache-common.conf
+++ b/apache-common.conf
@@ -16,11 +16,40 @@ DocumentRoot "/home/services/httpd/html"
Options FollowSymLinks
AllowOverride None
+ Require all denied
+
+
Order deny,allow
Deny from all
+# Prevent access to:
+# - .htaccess and .htpasswd files
+# - backup files from being viewed
+# - PHP's .user.ini
+
+
+ Require all denied
+
+
+ Order deny,allow
+ Deny from all
+
+
+
+# Prevent access to:
+# - version control directories
+
+
+ Require all denied
+
+
+ Order deny,allow
+ Deny from all
+
+
+
#
# This should be changed to whatever you set DocumentRoot to.
#
@@ -50,6 +79,9 @@ DocumentRoot "/home/services/httpd/html"
# Controls who can get stuff from this server.
#
+ Require all granted
+
+
Order allow,deny
Allow from all