Is there a way I can set an absolute path for nginx error_pages? Not absolute as in http://
, but absolute as in /usr/var/nginx/errors/500.html
.
Sure you can but in an indirect way:
error_page 500 /500.html;
location = /500.html {
root /usr/var/nginx/errors;
allow all;
internal;
}
see http://wiki.nginx.org/HttpCoreModule#error_page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With