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を参照してください