Upgraded defaults from nginx 1.20 update

This commit is contained in:
2022-06-15 15:27:53 +00:00
parent 602420f4dc
commit ce5f20bd4e
5 changed files with 167 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;