2018-07-23

2018-07-23  本文已影响8人  Gradlyarn
    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 {
        }
    }
上一篇 下一篇

猜你喜欢

热点阅读