1. server {
    2. listen 80 default_server;
    3. listen [::]:80 default_server;
    4. server_name _;
    5. root /usr/share/nginx/html;
    6. # Load configuration files for the default server block.
    7. include /etc/nginx/default.d/*.conf;
    8. location / {
    9. # 代理 8888端口
    10. proxy_pass http:/127.0.0.1:8888;
    11. }
    12. error_page 404 /404.html;
    13. location = /40x.html {
    14. }
    15. error_page 500 502 503 504 /50x.html;
    16. location = /50x.html {
    17. }
    18. }