Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法可以为 nginx error_pages 设置绝对路径?不是绝对的http://,而是绝对的/usr/var/nginx/errors/500.html。
http://
/usr/var/nginx/errors/500.html
当然可以,但以间接的方式:
error_page 500 /500.html; location = /500.html { root /usr/var/nginx/errors; allow all; internal; }
见http://wiki.nginx.org/HttpCoreModule#error_page