aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2026-06-08 01:06:51 -0400
committerPinapelz <yukais@pinapelz.com>2026-06-21 14:54:20 -0700
commit083e87b2ace0e3a0446b484d19c7201e133d1997 (patch)
tree1377ad2bc69f9a2092a303fbfc7032a699ca800e /docs
parent705845f0accb20c5940e40bfc14e56b3d3a64d14 (diff)
fix ACL rules for apache2
Diffstat (limited to 'docs')
-rw-r--r--docs/apache2-example.md10
-rw-r--r--docs/apache2.md10
2 files changed, 14 insertions, 6 deletions
diff --git a/docs/apache2-example.md b/docs/apache2-example.md
index 09f5c1d..a6115b1 100644
--- a/docs/apache2-example.md
+++ b/docs/apache2-example.md
@@ -49,9 +49,13 @@ Looking for the apache2 guide? <a href="https://git.lolcat.ca/lolcat/4get/src/br
</Directory>
# deny access to private resources
- <Directory /var/www/4get/data/>
- Order Deny,allow
- Deny from all
+ <DirectoryMatch "^/var/www/4get/(data|lib|scraper|template|oracles|docs|docker|extra)/">
+ Require all denied
+ </DirectoryMatch>
+
+ # remove directory listing from /icons
+ <Directory /var/www/4get/icons>
+ Options -Indexes
</Directory>
</VirtualHost>
diff --git a/docs/apache2.md b/docs/apache2.md
index ea337d6..7e545b3 100644
--- a/docs/apache2.md
+++ b/docs/apache2.md
@@ -104,9 +104,13 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
</Directory>
# deny access to private resources
- <Directory /var/www/4get/data/>
- Order Deny,allow
- Deny from all
+ <DirectoryMatch "^/var/www/4get/(data|lib|scraper|template|oracles|docs|docker|extra)/">
+ Require all denied
+ </DirectoryMatch>
+
+ # remove directory listing from /icons
+ <Directory /var/www/4get/icons>
+ Options -Indexes
</Directory>
</VirtualHost>
```
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage