Nginx reverse proxy error page

Posted by Lormayna on Server Fault See other posts from Server Fault or by Lormayna
Published on 2012-09-11T13:58:00Z Indexed on 2012/09/11 15:40 UTC
Read the original article Hit count: 160

Filed under:

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;
    }

© Server Fault or respective owner

Related posts about nginx