summaryrefslogtreecommitdiff
path: root/docker/apache/https.conf
diff options
context:
space:
mode:
authorEclair5748 <lolcat.whp7h@simplelogin.com>2024-04-19 11:59:49 +1000
committerEclair5748 <lolcat.whp7h@simplelogin.com>2024-04-19 11:59:49 +1000
commit9f5874aecf96b8f3b528f1037f39d6487d896a88 (patch)
treee0bac145c7d24494d7f44c23f87117876e6766a8 /docker/apache/https.conf
parent12b67af69c7a3fe4d82b5a30fe0e1eeb6db2fc34 (diff)
docker: restrict access to private resources
addresses issue #3
Diffstat (limited to 'docker/apache/https.conf')
-rw-r--r--docker/apache/https.conf10
1 files changed, 8 insertions, 2 deletions
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
</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