ci tp重定向

server
    {   
        listen 80; 
        #listen [::]:80;
        server_name tpblog.yeves.com;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /www/my/tpblog/public;

        include other.conf;
        #error_page   404   /404.html;
        include enable-php.conf;
        location /{
            try_files $uri $uri/ /index.php?$uri&$args;
        }   
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {   
            expires      30d;
        }   

        location ~ .*\.(js|css)?$
        {   
            expires      12h;
        }   

        location ~ /\. 
        {   
            deny all;
        }   

    
    } 

  

posted @ 2018-05-16 15:52  brady-wang  阅读(165)  评论(0编辑  收藏  举报