X-Git-Url: https://git.tld-linux.org/?p=packages%2Fapache.git;a=blobdiff_plain;f=apache-common.conf;h=085c5e7ef242e475e2b4aa970cbc154e200d5737;hp=8643668fb619b8f4be48370700fdfde7c44569d0;hb=1129fb3c19c2f3be62c2cf69dd8410756676ce6f;hpb=dd05da1dbcdec389492d326796747127f5a1e245 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 +