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的重写规则设定
最新推荐文章于 2022-10-10 22:52:30 发布