在/usr/local/nginx/conf/nginx.conf中:
server
{
...
##begin add by guozhenbin 20100727
location /b2c/
{
if (!-e $request_filename) {
rewrite ^/b2c/(.*)$ /b2c/index.php?$1 last;
}
}
##end add by guozhenbin 20100727
...
}
/usr/local/nginx/sbin/nginx -s reload
重启无效。
后来将b2c/去掉,OK了。
查看更多关于Nginx重定向的配置实例_nginx的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did20979