1
Fork 0
mirror of https://git.lolcat.ca/lolcat/4get.git synced 2024-12-03 23:42:16 -05:00

docker: restrict access to private resources

addresses issue #3
This commit is contained in:
Eclair5748 2024-04-19 11:59:49 +10:00
parent 12b67af69c
commit 9f5874aecf
No known key found for this signature in database
GPG key ID: 3E7487CFB5A7FEF9
2 changed files with 17 additions and 3 deletions

View file

@ -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
</Directory>
# deny access to private resources
<Directory "/var/www/html/4get/data">
Require all denied
<Files "*">
Require all denied
</Files>
</Directory>
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

View file

@ -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
</Directory>
# deny access to private resources
<Directory "/var/www/html/4get/data">
Require all denied
<Files "*">
Require all denied
</Files>
</Directory>
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so