Welcome! Log In Create A New Profile

Advanced

Re: error_page directive, how does context affect error handling behavior?

Maxim Dounin
February 28, 2012 04:04AM
Hello!

On Tue, Feb 28, 2012 at 07:53:23AM +0400, Max wrote:

> 27 февраля 2012, 20:07 от Grégory Pakosz : > > > > > > Thank you for your answer. May I suggest that explanation enters the wiki > > > in the error_page directive section? > > > > http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page > > > > : These directives are inherited from the previous level if and > > : only if there are no error_page directives on the current level. > > > > Fair enough! > > I'll refer to the doc more often then :) > > Thank you for the help You're welcome. Maxim is right, this is documented, but the implicit reset is not mentioned, so I've updated the wiki to make that clear: http://wiki.nginx.org/HttpCoreModule#error_page Max

There is no "implicit reset", it's just a result of no
inheritance. I don't think that such a detailed explanation of
how inheritance work is a good idea in context of error_page
directive documentation.

If you think this often causes serious misunderstanding, you may
want to place the detail description somewhere at
http://wiki.nginx.org/Pitfalls, metioning various array-type
directives which follow the same logic.

Maxim Dounin

p.s. You may want to avoid posting html to the list, especially
keeping in mind that text parts of your html messages are hardly
readable due to no line breaks.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

error_page directive, how does context affect error handling behavior?

gpakosz February 26, 2012 01:50PM

Re: error_page directive, how does context affect error handling behavior?

Max February 26, 2012 05:16PM

Re: error_page directive, how does context affect error handling behavior?

gpakosz February 27, 2012 09:22AM

Re: error_page directive, how does context affect error handling behavior?

Maxim Dounin February 27, 2012 10:04AM

Re: error_page directive, how does context affect error handling behavior?

gpakosz February 27, 2012 11:08AM

Re[2]: error_page directive, how does context affect error handling behavior?

Max February 27, 2012 10:54PM

Re: error_page directive, how does context affect error handling behavior?

Maxim Dounin February 28, 2012 04:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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