From 51b15afa0669f287eea7c39b8d13b5843fbfa528 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Aug 2022 02:15:16 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ed41b7a..ca8fe7b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,6 +4,8 @@ location __PATH__/ { # Path to source alias __FINALPATH__/; + index index.php; + # Add headers to serve security related headers more_set_headers "Strict-Transport-Security: max-age=15768000; includeSubDomains; preload;"; more_set_headers "X-Content-Type-Options: nosniff"; @@ -22,8 +24,6 @@ location __PATH__/ { # Disable gzip to avoid the removal of the ETag header gzip off; - index index.php; - try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; @@ -39,11 +39,11 @@ location __PATH__/ { fastcgi_intercept_errors on; fastcgi_read_timeout 60m; fastcgi_send_timeout 60m; - } + } location ^~ __PATH__/(uploads|thumbs){ deny all; - } + } location ^~ __PATH__/private { deny all;