kohana nginx伪静态设置 PHP开发框架kohana3.3.1在nginx下的伪静态设置例子

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

kohana nginx伪静态设置 PHP开发框架kohana3.3.1在nginx下的伪静态设置例子

  2021-03-19 我要评论
想了解PHP开发框架kohana3.3.1在nginx下的伪静态设置例子的相关内容吗,在本文为您仔细讲解kohana nginx伪静态设置的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:kohana,nginx伪静态设置,下面大家一起来学习吧。

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

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们