502 Bad Gateway

Igor Sysoev igor at sysoev.ru
Fri May 6 22:30:36 MSD 2011


On Fri, May 06, 2011 at 01:20:24PM -0300, Felipe Teofilo wrote:
> Hello,
> 
> 
> How can i change 502 bad gateway from all my vhosts, to do a unique erro page?
> 
> 
> I want redirect to /var/html/www/errors/502/
> 
> 
> I try put at vhost config, but some time it doesnt work.

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /var/html/www/errors/502/;
        }


-- 
Igor Sysoev



More information about the nginx mailing list