From 5f15c2e53b8ca82a8b832a825a340ae63fb99ed2 Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 19:15:43 +0100 Subject: [PATCH] Fix some stuff --- conf/nginx-default.conf | 2 +- management/web_update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx-default.conf b/conf/nginx-default.conf index 1b3ad5a9..6bd36468 100644 --- a/conf/nginx-default.conf +++ b/conf/nginx-default.conf @@ -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; diff --git a/management/web_update.py b/management/web_update.py index 4639cee4..0e77e267 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -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