From afbe95cff62a568ce2ef32b4c10e7174b68a46b7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 5 Apr 2022 22:11:31 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8002a299..f9ef9895 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,16 +10,18 @@ location __PATH__/ { client_max_body_size 20m; client_body_buffer_size 128k; + # Default indexes and catch-all index index.php; charset utf-8; - location ~* \.php${ - try_files $uri =404; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - fastcgi_index index.php; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + location ~* \.php$ + { + try_files $uri =404; + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # make sure webfinger and other well known services aren't blocked