在需要访问的域名的conf文件中,比如
vim /etc/nginx/123.com.conf
location / { // …..省略部分代码
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
|
在需要访问的域名的conf文件中,比如 vim /etc/nginx/123.com.conf
location / { // …..省略部分代码
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
|