nginx 网站转发 基础配置

   nginx 单网站基础配置? server { 
      listen 80; server_name www.xxx.com; index index.php index.html; 
      root /dirname/xxx/public; 
      include rewrite/thinkphp.conf; 
      #error_page 404 /404.html; 
      include enable-php-recwe.conf; 

      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } 
      location ~ .*\.(js|css)?$ { expires 12h; } 
      location ~ /.well-known { allow all; } 
      location ~ /\. { 
        deny all; 
      } 
    }

记录你我
请先登录后发表评论
  • latest comments
  • 总共0条评论