1

custom 502 bad gataway for nginx, cannot get it to work, whats wrong?

view story
linux-howto

http://serverfault.com – Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail. What did I miss? according to docs this should be right and I just don't see any errors. upstream unicorn { server unix:/srv/host/shared/tmp/unicorn.sock fail_timeout=0; } server { listen 80 deferred; server_name host.com host.com client_max_body_size 4G; keepalive_timeout 10; root /srv/host/public; location / { try_files /system/maintenance.html $uri/inde (HowTos)