这是一个创建于 2114 天前的主题,其中的信息可能已经有所发展或是发生改变。
server {
listen 80;
server_name localhost;
index index.php index.htm index.html;
set $webrootdir "F:/wnmp/www";
#access_log F:/wnmp/nginx/logs/access.log main;
#error_log F:/wnmp/nginx/logs/error.log info;
#处理链接中不带 index.php 的情况
if ($query_string ~* "pf=m(.*)$") {
rewrite ^/ /index.php last;
}
root $webrootdir;
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php ;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
#rewrite ^/goods-([0-9]+).html?$ /index.php?app=goods&id=$1 last;
location /{
rewrite ^/goods-([0-9]+).html?$ /index.php?app=goods&id=$1 last;
}
}
搞不定了。 伪静态不生效。。