1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

nginx/templates/server.conf.j2: Kiwix CAN serve dotfiles (#3072)

This commit is contained in:
A Holt 2021-12-18 18:21:36 -05:00 committed by GitHub
parent 49e69c4888
commit 0bf885e4eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,8 @@ server {
# if you don't like seeing errors for a missing robots.txt in root
location = /robots.txt { access_log off; log_not_found off; }
# this will prevent files like .htaccess .htpassword .secret etc from being served
# Let's not serve files like .htaccess .htpassword .secret etc.
# EXCEPTION: 'location ^~ /kiwix' in /etc/nginx/conf.d/kiwix-nginx.conf
# overrules this, for ZIM file articles that begin with a dot (#3072).
location ~ /\. { deny all; }
}