时间:2016-02-26 17:58 来源: 我爱IT技术网 作者:佚名
欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是服务器系列之:【PHP开发框架kohana3.3.1在nginx下的伪静态设置例子】,下面是详细的分享!
PHP开发框架kohana3.3.1在nginx下的伪静态设置例子
server
{
listen 80;
server_name 55zaza;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/55zaza;
#include kohana_rw.conf;
location / {
index index.php;
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ .*\.(php|php5)?$
{
try_files $uri=404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
以上就是关于PHP开发框架kohana3.3.1在nginx下的伪静态设置例子的服务器维护教程分享,更多电脑教程请移步到>>电脑教程频道。
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
