"error_page"& "return" bug?
Edho Arief
edho at myconan.net
Sun Feb 19 15:54:53 UTC 2012
Nevermind, I just got this awesome idea: if ($uri !~ ^/error_page/) {
return 503; }
(seems to be working on my simple test)
On Sun, Feb 19, 2012 at 10:23 PM, Edho Arief <edho at myconan.net> wrote:
> ...so, the method above is better than using location / { } block? I'm
> confused now.
>
>
> #############
> server {
> error_page 503 /error_docs/custom503.html;
> location / {
> return 503;
> ...normal configs...
> }
> location /error_docs/ {
> internal;
> alias /server/path/to/error_docs/folder;
> }
> }
> #############
>
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list