yangakw yangakw

thinkphp5 nginx的配置文件

in 记录read (27) 文章转载请注明来源!

``

server
{
    listen 80;
    #listen [::]:80;
    server_name www.xxx.cn xxx.cn;
    index index.html index.htm index.php default.html default.htm default.php;
    root  /home/wwwroot/www.xxx.cn/public; 
    include other.conf;
    #error_page   404   /404.html;
    include enable-php.conf; 
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
    } 
    location ~ .*\.(js|css)?$
    {
        expires      12h;
    } 
    location / {
      if (!-e $request_filename) {
            rewrite ^(.*)$ /index.php?s=$1 last;
            break;
      }
   } 
    location ~ /\.
    {
        deny all;
    } 
    access_log  /home/wwwlogs/www.xxx.cn.log;
}

``

jrotty WeChat Pay

微信打赏

jrotty Alipay

支付宝打赏

文章二维码

扫描二维码,在手机上阅读!

发表新评论
博客已运行
© 2017 yangakw
PREVIOUS NEXT
雷姆
拉姆