码迷,mamicode.com
首页 > 其他好文 > 详细

codeigniter nginx配置

时间:2015-11-06 16:13:18      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:

转载:http://www.nginx.cn/1134.html

server{
        listen 80;
server_name www.ci.oa.com;
access_log /usr/local/services/nginx/logs/www.ci.oa.com.access.log;
error_log /usr/local/services/nginx/logs/www.ci.oa.com.error.log;
charset utf-8;
        location / {
root /home/test/project/www/CodeIgniter-3.0.3;
index index.php;
try_files $uri $uri/ /index.php?$uri&$args;
}
        location ~ ^.+.php {
include fastcgi_params;
root /home/test/project/www/CodeIgniter-3.0.3;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+.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;
}
}

codeigniter nginx配置

标签:

原文地址:http://www.cnblogs.com/faraway-tiny/p/4942735.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!