Update rootfs/etc/nginx/nginx.conf
This commit is contained in:
parent
1decdf0f03
commit
8bfa18d40d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue