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
.
Absolute path for error_page in nginx?
Asked Answered
Sure you can but in an indirect way:
error_page 500 /500.html;
location = /500.html {
root /usr/var/nginx/errors;
allow all;
internal;
}
© 2022 - 2024 — McMap. All rights reserved.
http
context too. What version of nginx you are using? – Valene