请教nginx 多个 server 怎么配置
发布网友
发布时间:2022-04-30 14:18
我来回答
共1个回答
热心网友
时间:2022-06-23 01:08
location /test {
index index.php;
root /xxx
if (!-f $request_filename) {
rewrite ^(.*)$ /index.php last;
break;
}
}
location ~* \.php {
root /xxx
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9999;
include fastcgi.conf;
}