Welcome! Log In Create A New Profile

Advanced

Re: deny by ip and redirect

October 17, 2010 12:36PM
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@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/
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");
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

deny by ip and redirect

iberkner October 17, 2010 10:40AM

Re: deny by ip and redirect

SanCao Jie October 17, 2010 11:28AM

Re: deny by ip and redirect

helen October 17, 2010 11:28AM

Re: deny by ip and redirect

iberkner October 17, 2010 12:04PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 12:18PM

Re: deny by ip and redirect

iberkner October 17, 2010 12:20PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 12:28PM

Re: deny by ip and redirect

iberkner October 17, 2010 12:32PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 12:36PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 12:48PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 01:44PM

Re: deny by ip and redirect

iberkner October 17, 2010 03:12PM

Re: deny by ip and redirect

Igor Sysoev October 17, 2010 03:44PM

Re: deny by ip and redirect

iberkner October 17, 2010 04:58PM

Re: deny by ip and redirect

iberkner October 18, 2010 12:02AM

Re: deny by ip and redirect

Igor Sysoev October 18, 2010 12:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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