打开UPUPW默认主机htdocs根目录下的up-rewrite.conf文件,或者虚拟主机根目录下的up-rewrite.conf文件
推荐用轻量级的notepad++软件编辑vhosts.conf,切记不要用记事本编辑否则会无法启动nginx服务
下面是phpwind官网的Nginx伪静态规则:

代码片段
11 行
location / {
if (-f $request_filename) {
           break;
    }
    if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {
        break;
    }
    if (!-e $request_filename) {
        rewrite . /index.php last;
    }
}

我们选取location / {......}中间的部分加入up-rewrite.conf中即可,不能包含location / {......}否则Nginx服务将不能启动,up-rewrite.conf中具体phpwind伪静态规则如下:

代码片段
9 行
if (-f $request_filename) {
           break;
    }
    if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {
        break;
    }
    if (!-e $request_filename) {
        rewrite . /index.php last;
    }

保存配置文件s5关闭全部服务,s1开启全部服务后即可访问伪静态页面