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