Nginx won't use custom 502 error page
问题 I am trying to display a custom 502 error page when webserver behind (upstream) is offline, but it doesn't work : it continues displaying default 502 error page (and I'm sure upstream is offline). My file organization is the following : Static files are under /var/web/example.org/www/res (example: /var/web/example.org/www/res/robots.txt ) ; Error pages are under /var/web/example.org/www (example: /var/web/example.org/www/502.html ). This is because i don't want error pages (not coming from