diff --git a/docker/apache/http.conf b/docker/apache/http.conf index 24bb1d2..f496ba5 100644 --- a/docker/apache/http.conf +++ b/docker/apache/http.conf @@ -16,11 +16,19 @@ ErrorLog /dev/null RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule .* $0.php - Options Indexes FollowSymLinks + Options FollowSymLinks AllowOverride None Require all granted +# deny access to private resources + + Require all denied + + Require all denied + + + LoadModule rewrite_module modules/mod_rewrite.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule authn_file_module modules/mod_authn_file.so diff --git a/docker/apache/https.conf b/docker/apache/https.conf index db032dd..ca5edf5 100644 --- a/docker/apache/https.conf +++ b/docker/apache/https.conf @@ -21,12 +21,18 @@ ErrorLog /dev/null RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule .* $0.php - Options Indexes FollowSymLinks + Options FollowSymLinks AllowOverride None Require all granted - +# deny access to private resources + + Require all denied + + Require all denied + + LoadModule rewrite_module modules/mod_rewrite.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so