Fix some stuff

This commit is contained in:
David Duque 2020-04-20 19:15:43 +01:00
parent 49da79cbd9
commit 5f15c2e53b
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@
# we're blocking dotfiles in the static hosted sites but not the FastCGI-
# handled locations for Nextcloud (which serves user-uploaded files that might
# have this pattern, see #414) or some of the other services.
location ~ /\.(ht|svn|git|hg|bzr) {
location ~ /\.(ht|svn|git|hg|bzr|.*\.conf) {
log_not_found off;
access_log off;
deny all;

View File

@ -100,7 +100,7 @@ def do_web_update(env):
local_conf = f.read()
if domain not in has_root_proxy_or_redirect:
local_conf = make_domain_config(domain, [template0, template1], ssl_certificates, env)
local_conf = make_domain_config(domain, [template0, template4], ssl_certificates, env)
else:
local_conf = make_domain_config(domain, [template0], ssl_certificates, env)
nginx_conf += local_conf