答えて

14

することができますが、間接的な方法で確認してください。

error_page 500 /500.html; 
location = /500.html { 
     root /usr/var/nginx/errors; 
     allow all; 
     internal; 
} 

http://wiki.nginx.org/HttpCoreModule#error_page

+3

を参照してください、これは 'http'ブロック内では動作しませんのでご注意ください。 –

+0

@magu [official docs](http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page)は、httpコンテキストでも動作すると言います。あなたはどのバージョンのnginxを使用していますか? – number5

+4

'error_page'が動作します。 「場所」はありません。 –