server {
listen 8811;
server_name 127.0.0.1;
location / {
root D:\phpfind\WWW\CodeIgniter_2.1.3;
index index.html index.htm index.php;
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
location /index.php{
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME D:\phpfind\WWW\CodeIgniter_2.1.3\index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
CI在nginx的重写规则设定
猜你喜欢
转载自hao3721.iteye.com/blog/1896799
今日推荐
周排行