发布于 2015-09-09 21:53:23 | 568 次阅读 | 评论: 0 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

Kohana PHP5框架

Kohana 是一款纯 PHP5 的框架,基于 MVC 模式开发, 它的特点就是高安全性,轻量级代码,容易使用。 2009年9月发布了3.0版本,支持HMVC模式。


kohana nginx的配置

    location / {  
            if (!-e $request_filename) {      
                    rewrite ^/(.*)$ /index.php?kohana_uri=/$1 last;  
            }  
        index index.php  index.html index.htm;  
    }   

 

普通配置:

    server  
      
            {  
      
                    listen 80;  
                    #listen [::]:80 default ipv6only=on;  
                    server_name domain.com www.domain.com;  
                    index index.html index.htm index.php;  
                    root  /data/htdcos/webroot;  
      
                    #error_page   404   /404.html;  
      
                    location ~ [^/]\.php(/|$)  
                            {  
                                    # comment try_files $uri =404; to enable pathinfo  
                                    try_files $uri =404;  
                                    fastcgi_pass  unix:/tmp/php-cgi.sock;  
                                    fastcgi_index index.php;  
                                    include fastcgi.conf;  
                                    #include pathinfo.conf;  
                            }  
      
      
                    location /nginx_status {  
                            stub_status on;  
                            access_log   off;  
                    }  
                    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$  
                            {  
                                    expires      30d;  
                            }  
                    location ~ .*\.(js|css)?$  
                            {  
                                    expires      12h;  
                            }  
                    access_log  /data/wwwlogs/access.log  access;  
            } 


最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务