Hi,
It seems to me add_header and error_page don’t work together (error
pages
don’t have headers added in the http scope).
This (Add_header directive not working for 40x and 50x responses - NGINX - Ruby-Forum) old posting from 2009 also
says so, and claims the only workaround is the non-standard headers-more
module.
Am I missing something? Any chance this oversight will be fixed in
mainline
nginx?
Thanks,
- Yaniv