Nginx reverse proxy error page
- by Lormayna
I'm using nginx as reverse proxy for a single machine.
I would like to have an error page when the backend machine goes down.
This is my configuration file:
server {
listen 80;
access_log /var/log/nginx/access.log;
root /var/www/nginx;
error_page 403 404 500 502 503 504 /error.html;
location / {
proxy_pass http://192.168.1.78/;
include /etc/nginx/proxy.conf;
}