I’ve got a bunch of IP addresses and IP ranges I’d like
to redirect to, let’s say the amnesty international site
(they’re mainly from gov).
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?
I’d also like if I can have a round-robin of redirections
(once for amnesty, next to copwatch, etc)?
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?
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.
On Sun, Jul 01, 2012 at 12:16:31AM -0400, Jiff wrote:
Hi forulisters,
I’ve got a bunch of IP addresses and IP ranges I’d like
to redirect to, let’s say the amnesty international site
(they’re mainly from gov).
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?