| From | Sent On | Attachments |
|---|---|---|
| Nginx User | Feb 19, 2012 2:22 am | |
| Maxim Dounin | Feb 19, 2012 4:02 am | |
| Nginx User | Feb 19, 2012 4:23 am | |
| Nginx User | Feb 19, 2012 4:25 am | |
| Nginx User | Feb 19, 2012 4:44 am | |
| Maxim Dounin | Feb 19, 2012 4:55 am | |
| Nginx User | Feb 19, 2012 4:59 am | |
| Maxim Dounin | Feb 19, 2012 5:03 am | |
| Nginx User | Feb 19, 2012 5:06 am | |
| Edho Arief | Feb 19, 2012 5:54 am | |
| Nginx User | Feb 19, 2012 6:01 am | |
| Edho Arief | Feb 19, 2012 6:46 am | |
| Nginx User | Feb 19, 2012 7:06 am | |
| Nginx User | Feb 19, 2012 7:08 am | |
| Nginx User | Feb 19, 2012 7:11 am | |
| Nginx User | Feb 19, 2012 7:20 am | |
| Edho Arief | Feb 19, 2012 7:23 am | |
| Edho Arief | Feb 19, 2012 7:54 am | |
| Nginx User | Feb 19, 2012 8:36 am | |
| Edho Arief | Feb 19, 2012 8:43 am | |
| Nginx User | Feb 19, 2012 9:18 am | |
| Edho Arief | Feb 19, 2012 9:33 am | |
| Nginx User | Feb 19, 2012 9:55 am | |
| Edho Arief | Feb 19, 2012 10:36 am | |
| Nginx User | Feb 19, 2012 10:53 am |
| Subject: | Re: "error_page"& "return" bug? | |
|---|---|---|
| From: | Nginx User (ngi...@nginxuser.net) | |
| Date: | Feb 19, 2012 5:06:11 am | |
| List: | ru.sysoev.nginx | |
On 19 February 2012 16:04, Maxim Dounin <mdou...@mdounin.ru> wrote:
Hello!
On Sun, Feb 19, 2012 at 03:45:15PM +0300, Nginx User wrote:
On 19 February 2012 15:03, Maxim Dounin <mdou...@mdounin.ru> wrote:
Another possible aproach is to use named location in error_page. It won't re-execute server rewrites (that is, rewrite module directives, including the "return" directive, specified at server level) and will work as well.
Unfortunately, this doesn't appear to work as expected either
Server { # listen etc ...
error_page 503 = @sitedown; return 503 location @sitedown { root /server/path/to/folder; # Don't you wish try_files could accept a single parameter? try_files $uri /custom503.html;
Unless you have $uri file, this will do an internal redirect to /custom503.html, triggering the same 503 again. You have to process request in the location in question to make things work.
Thanks.
I got a working config where I first redirect to a location and issue the 503 status there.
Now, don't you really, really wish try_files could accept a single parameter?? :)
Thanks for your help.
_______________________________________________ nginx mailing list ngi...@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx





