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:
parent
49e69c4888
commit
0bf885e4eb
1 changed files with 3 additions and 1 deletions
|
@ -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; }
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue