diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index f8e0c4e..e1eb3e6 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -72,15 +72,17 @@ http { location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php-fpm.sock; + fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_index index.php; include fastcgi_params; # Pass the original forwarded_scheme and HTTPS status to the PHP backend fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme; fastcgi_param HTTPS $https if_not_empty; + + internal; }