deny by ip and redirect
Igor Sysoev
igor at sysoev.ru
Sun Oct 17 20:33:36 MSD 2010
On Sun, Oct 17, 2010 at 12:29:14PM -0400, Ilan Berkner wrote:
> Thanks Igor, appreciate the information, is this something you expect to be
> done in coming versions?
The attached patch allows this.
It will be included in the next 0.8.53.
> For my purposes for now, this is acceptable.
>
> Thanks
>
> On Sun, Oct 17, 2010 at 12:25 PM, Igor Sysoev <igor at sysoev.ru> wrote:
>
> > On Sun, Oct 17, 2010 at 12:17:55PM -0400, Ilan Berkner wrote:
> >
> > > Is there a way to do it with a 301?
> >
> > It should be implemented as
> > error_page 403 =301 http://www.primarydomain.com$request_uri;
> > but currently this is not implemented.
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/ngx_http_special_response.c
===================================================================
--- src/http/ngx_http_special_response.c (revision 3099)
+++ src/http/ngx_http_special_response.c (working copy)
@@ -556,7 +556,7 @@
return NGX_ERROR;
}
- r->err_status = NGX_HTTP_MOVED_TEMPORARILY;
+ r->err_status = overwrite ? overwrite : NGX_HTTP_MOVED_TEMPORARILY;
location->hash = 1;
ngx_str_set(&location->key, "Location");
More information about the nginx
mailing list