# Add\_header and error\_page

**URL:** <https://www.ruby-forum.com/t/add-header-and-error-page/212872>\
**Category:** NGINX\
**Created:** [October 16, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/add-header-and-error-page/212872 "2011-10-16T17:52:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [October 16, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/add-header-and-error-page/212872/1 "2011-10-16T17:52:01Z")

</div>

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](http://www.ruby-forum.com/topic/196700)) 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
