美文网首页
2018-07-23

2018-07-23

作者: Gradlyarn | 来源:发表于2018-07-23 00:48 被阅读8次
    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /usr/share/nginx/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        }
        location /api {
           proxy_pass http://127.0.0.1:8765;
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

相关文章

网友评论

      本文标题:2018-07-23

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