Openresty配置YII框架
2016-05-30 00:00
363 查看
[code=plain] server { listen 80; server_name www.myserver_name.com; index index.html index.htm index.php; root /usr/local/openresty/nginx/html/manager/lebi; #笔者的YII的业务代码和framework都放在html目录下的manager目录 autoindex on; access_log /usr/local/openresty/nginx/logs/queue.access.log; error_log /usr/local/openresty/nginx/logs/queue.error.log; rewrite "^/sitemap.xml" /uploads/sitemap/sitemap.xml last; error_page 500 502 503 504 /50x.html; location / { if (!-e $request_filename){ rewrite ^/(.*) /index.php last; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
相关文章推荐
- PHP Traits的使用
- YII2 - Yii 2 控制器不能包含大写字母的Bug
- YII2 - Yii 2 控制器不能包含大写字母的Bug
- PHP接口简介及使用
- php while循环控制实例讲解
- php之道
- PHP面向对象
- php学习小技巧
- php函数ob_start()、ob_end_clean()、ob_get_contents()
- php 怎么获取匹配解析当前网址中的参数
- EMIPLIB库分析三 MIPWAVInput
- EMIPLIB库分析二
- EMIPLIB库分析一
- PHP复用curl请求遇到的请求参数混乱的问题
- PHP留言板
- php-联想搜索
- php核心知识点
- phpMyAdmin 错误:Error during session start
- PXE+kickstart 无人值守批量装机(ftp推送方式)
- TP框架基本使用