nginx配置ci框架
2013-05-13 16:05
751 查看
server { listen 80; server_name www.phpno.com; root /home/www/www_phpno_com/admin_wwwroot; access_log off; error_page 404 /404.html; location /404.html { root /home/www/www_phpno_com/admin_wwwroot; } location /{ index index.html index.htm index.php; if (-e $request_filename) { break; } if (!-e $request_filename) {#-e代表如果找不到文件或者目录 rewrite ^/(.*)$ /index.php/$1 last; break; } } location ~ .+\.php($|/) { root /home/www/www_phpno_com/admin_wwwroot; 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; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /home/www/www_phpno_com/admin_wwwroot/$fastcgi_script_name; # fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name; include fastcgi_params; } }
相关文章推荐
- php CI框架nginx 配置
- nginx配置ci框架
- CI框架nginx服务器,该如何配置前后台。
- PHP CI框架下,如果配置NGINX(根目录和子目录两种模式)
- CI框架nginx服务器,该如何配置前后台。
- Nginx配置CI框架问题(Linux平台下Centos系统)
- Nginx 支持 CI 框架的配置并禁止使用 ip 访问
- nginx 配置 php 的 CI 框架的web
- CI框架在 nginx 服务器上配置 rewrite 去掉 index.php 的方法:
- PHP CI框架的url路由配置
- PHP slim restfull框架nginx 配置
- php ci框架Email类配置
- Nginx中CI的重写配置
- CI框架 -- 配置文件config.php
- Nginx下配置codeigniter框架方法
- Nginx 环境配置 CodeIgniter 框架
- nginx下CI框架虚拟主机设置
- Yii框架在Nginx下的rewrite配置(伪静态配置)
- ci 框架 1_基本配置
- PHP CI框架的安装配置和简单使用