server { listen 8090; server_name localhost; error_page 502 /502.html; location / { root /usr/share/nginx/error-pages; } }