求教一下啊nginx下dz的伪静态设置 老是404 想死的心都有了
本人菜鸟啊 配置代码如下 BBS目录是 home/wwwroot/bbs
请大虾们帮忙啊

![](sad.gif)

server
{
listen 80;
server_name www.yykafei.com;
index index.html index.htm index.php;
root /home/wwwroot;

location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}

location / {
index index.html index.htm index.php;
root /home/wwwroot/bbs;
rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;
rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page\%3D$3&page=$2 last;
rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;
rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;
break;
}