Kohana 是一款纯 PHP5 的框架,基于 MVC 模式开发, 它的特点就是高安全性,轻量级代码,容易使用,并且最新的kohana3支持HMVC模式。以下是在nginx环境下的kohana伪静态配置参考例子:

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;
	}

标签:
kohana,nginx伪静态设置

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com