Welcome! Log In Create A New Profile

Advanced

Re: error_page and module contexts

Dave Bailey
February 03, 2012 01:06PM
Hi,

On Fri, Feb 3, 2012 at 9:52 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Feb 03, 2012 at 08:53:26AM -0800, Dave Bailey wrote:
>
> > Hi,
> >
> > As of nginx 1.1.6, it seems that the error_page directive can no longer
> be
> > used in a way that preserves module contexts to the log phase of the
> > request cycle. This means that if I have a log handler which expects
> some
> > information that had been saved in a module context before the error_page
> > logic is invoked, that information is no longer accessible when the log
> > handler is actually called. Is there a way to work around this?
>
> Currently the only thing which survives internal redirects (and
> redirection to a named location as of 1.1.6+) is variables. If
> you need something persistant, you may register one and store
> needed information there (up to a pointer to your module context,
> actually).
>

Great, thank you. Looks like this will work perfectly.


> Maxim Dounin
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>

-dave
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

error_page and module contexts

Dave Bailey 1221 February 03, 2012 11:54AM

Re: error_page and module contexts

Maxim Dounin 435 February 03, 2012 12:54PM

Re: error_page and module contexts

Dave Bailey 530 February 03, 2012 01:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 168
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