Remove SCRIPT_NAME from FastCGI params and update Nginx default index to prioritize index.html.

This commit is contained in:
2026-07-15 23:40:25 +05:00
parent 9356b06ef5
commit 756cafdbff
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ server {
disable_symlinks if_not_owner from=/usr/share/nginx/html;
index index.php index.html;
index index.html;
root /usr/share/nginx/html;
${GZIP_BLOCK}
-1
View File
@@ -3,7 +3,6 @@ fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;