# mvip-err **Repository Path**: JYVFJ/mvip-err ## Basic Information - **Project Name**: mvip-err - **Description**: 错误页面 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-03 - **Last Updated**: 2025-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 服务器响应500页面 直接布局在`nginx`下即可 ```nginx # 后台 server { listen 24666; server_name admin.gxguoding.cn; location / { proxy_pass http://127.0.0.1:24432; proxy_set_header x-forwarded-for $remote_addr; } error_page 502 501 400 404 = @error_page; location @error_page { return 301 http://err.gxguoding.cn/; } } ``` 或者 ```nginx error_page 500 /500.html; error_page 501 /501.html; error_page 502 /502.html; error_page 503 /503.html; error_page 504 /504.html; location = /500.html { root /usr/share/nginx/html; internal; } location = /501.html { root /usr/share/nginx/html; internal; } location = /502.html { root /usr/share/nginx/html; internal; } location = /503.html { root /usr/share/nginx/html; internal; } location = /504.html { root /usr/share/nginx/html; internal; } ``` ![image-20241114133047782](./doc/image-20241114133047782.png) ![image-20241114133207871](./doc/image-20241114133207871.png)