diff --git a/etc/nginx/HTTPS_default.template.conf b/etc/nginx/HTTPS_default.template.conf index 4a590e4..bf77ab9 100755 --- a/etc/nginx/HTTPS_default.template.conf +++ b/etc/nginx/HTTPS_default.template.conf @@ -55,11 +55,6 @@ server { deny all; } - # Block accidental directory listing - location / { - try_files $uri $uri/ =404; - } - # Instructs visitor browser to cache files for 1 month location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 1M; @@ -109,7 +104,6 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name ${NGINX_HOST}; - ssl on; add_header Strict-Transport-Security "max-age=31536000" always; ssl_session_cache shared:SSL:20m; ssl_session_timeout 10m; diff --git a/etc/nginx/default.template.conf b/etc/nginx/default.template.conf index 48be825..be7d033 100755 --- a/etc/nginx/default.template.conf +++ b/etc/nginx/default.template.conf @@ -50,11 +50,6 @@ server { deny all; } - # Block accidental directory listing - location / { - try_files $uri $uri/ =404; - } - # Instructs visitor browser to cache files for 1 month location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 1M;