change nginx config to add include location
This commit is contained in:
parent
9325fbf62c
commit
9f956b6f38
@ -59,15 +59,15 @@ nginx_vhosts:
|
|||||||
location = /50x.html {
|
location = /50x.html {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location =/ {
|
|
||||||
rewrite ^ /starter;
|
|
||||||
}
|
|
||||||
location / {
|
location / {
|
||||||
index index.php index.html index.htm ;
|
index index.php index.html index.htm ;
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
location =/ {
|
||||||
|
rewrite ^ /starter;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
# try_files $uri =404;
|
# try_files $uri =404;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
@ -77,6 +77,7 @@ nginx_vhosts:
|
|||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
include /etc/nginx/conf.d/*.default;
|
||||||
|
|
||||||
|
|
||||||
nginx_realIP_Proxy: 192.168.1.10/24
|
nginx_realIP_Proxy: 192.168.1.10/24
|
||||||
|
Loading…
Reference in New Issue
Block a user