X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=apache-common.conf;h=085c5e7ef242e475e2b4aa970cbc154e200d5737;hb=de403f23ce1212c6b2ba4b266b9e660ddf0930d0;hp=8643668fb619b8f4be48370700fdfde7c44569d0;hpb=dd05da1dbcdec389492d326796747127f5a1e245;p=packages%2Fapache.git
diff --git a/apache-common.conf b/apache-common.conf
index 8643668..085c5e7 100644
--- a/apache-common.conf
+++ b/apache-common.conf
@@ -18,8 +18,38 @@ DocumentRoot "/home/services/httpd/html"
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.
#
@@ -51,5 +81,9 @@ DocumentRoot "/home/services/httpd/html"
Require all granted
+
+ Order allow,deny
+ Allow from all
+