nginx redirect error page
Hello,
I recently changed from apache to nginx to server my users files.I would like to redirect server error pages to the static page /50x.html.I read up on google and searched everywhere and found different ways of doing it but none works for me.Can anyone help?Below is my code in nginx.conf.
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /usr/local/nginx/html/50x.html {
root html;
}
Thank you
|