美文网首页
nginx配置

nginx配置

作者: Irlans | 来源:发表于2018-04-23 10:16 被阅读0次
server {
        listen       80;
        server_name  localhost;
        charset utf-8;
        access_log      /home/log/nginx_access.log;
        error_log       /home/log/nginx_error.log;
        client_max_body_size 75M;

        location / {
          include     uwsgi_params;
          uwsgi_pass  127.0.0.1:8088;
        }

        location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css|mp3|mp4)$  {
          root        /home/pic/members;
          access_log  off;
          expires     30d;
        }
    }

相关文章

网友评论

      本文标题:nginx配置

      本文链接:https://www.haomeiwen.com/subject/sheklftx.html