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,16 +72,18 @@ http {
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:/run/php-fpm.sock;
|
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_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_index index.php;
|
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|
||||||
# Pass the original forwarded_scheme and HTTPS status to the PHP backend
|
# Pass the original forwarded_scheme and HTTPS status to the PHP backend
|
||||||
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme;
|
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme;
|
||||||
fastcgi_param HTTPS $https if_not_empty;
|
fastcgi_param HTTPS $https if_not_empty;
|
||||||
|
|
||||||
|
internal;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
|
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
|
||||||
|
|
Loading…
Add table
Reference in a new issue