Welcome! Log In Create A New Profile

Advanced

Re: How can I redirect some IP addresses?

Francis Daly
July 01, 2012 05:56AM
On Sun, Jul 01, 2012 at 12:16:31AM -0400, Jiff wrote:

Hi there,

> I read http://wiki.nginx.org/HttpAccessModule but as I've
> got many of them I'm wondering if nginx can read a text
> file (or something else) instead of put all these addresses
> in a block?

http://nginx.org/r/include

> I'd also like if I can have a round-robin of redirections
> (once for amnesty, next to copwatch, etc)?

I'm not aware of a pure nginx.conf way of doing that.

But it shouldn't be too tough to use some scripting -- either error_page
to a location which does something_pass to a separate server which issues
the http redirect; or use one of the embedded scripting languages.

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

How can I redirect some IP addresses?

Jiff July 01, 2012 12:16AM

Re: How can I redirect some IP addresses?

Francis Daly July 01, 2012 05:56AM

Re: How can I redirect some IP addresses?

Ruslan Ermilov July 02, 2012 06:18AM

Re: How can I redirect some IP addresses?

Jiff July 03, 2012 03:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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