server
{
listen 80;
server_namewww.xxxx.com;//网站地址
index index.html index.htm index.php;
root/data/www/mmzz; //网站目录
autoindex on;
location / {
root/data/www/mmzz;
index index.html index.htm index.php;
rewrite ^/$ /index.php last;
rewrite ^/(?!index.php|robots.txt|images|js|styles|css)(.*)$ /index.php/$1 last;
}
location ~ ^(.+.php)(.*)$ {
root /data/www/mmzz; //网站目录
fastcgi_index index.php;
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
}
我在linux下的配置,你改改看能不能用哈~
赞Hex。这么热心助人,彻底感动:victory: 我也是这种情况 真麻烦 还没配置好呢
页:
1
[2]