Welcome! Log In Create A New Profile

Advanced

Re: add_header directive not working for 40x and 50x responses

agentzh
November 17, 2009 05:16AM
On Mon, Oct 5, 2009 at 11:43 PM, fxdemolisher <nginx-forum@nginx.us> wrote:
> As per the http header module's documentation (link) the add_header directive does not work for 40x and 50x error pages.
>

With the headers_more module (
http://github.com/agentzh/headers-more-nginx-module ), it will by
default apply to all the status codes, including 4xx and 5xx.

> This is something that is required by my project since NGINX is responsible for serving error pages and we need to set specific cookies when the error page is displayed.
>

I'm not sure if you want to use nginx variables in your cookies. If
yes, then headers_more needs more work to make you happy :)

Cheers,
-agentzh
Subject Author Posted

add_header directive not working for 40x and 50x responses

fxdemolisher October 05, 2009 11:43AM

Re: add_header directive not working for 40x and 50x responses

fxdemolisher October 09, 2009 02:12PM

Re: add_header directive not working for 40x and 50x responses

agentzh October 09, 2009 11:06PM

Re: add_header directive not working for 40x and 50x responses

agentzh November 17, 2009 05:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready