PHP开发框架kohana3.3.1在nginx下的伪静态设置例子
Kohana是一款纯PHP5的框架,基于MVC模式开发,它的特点就是高安全性,轻量级代码,容易使用,并且最新的kohana3支持HMVC模式。以下是在nginx环境下的kohana伪静态配置参考例子:
server
{
listen80;
server_name55zaza;
indexindex.htmlindex.htmindex.phpdefault.htmldefault.htmdefault.php;
root/home/wwwroot/55zaza;
#includekohana_rw.conf;
location/{
indexindex.php;
try_files$uri$uri//index.php?$uri&$args;
}
location~.*\.(php|php5)?$
{
try_files$uri=404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_indexindex.php;
includefcgi.conf;
}
location~.*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires30d;
}
location~.*\.(js|css)?$
{
expires12h;
}
access_logoff;
}