在/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了。














暂无评论内容