From nginx-forum at nginx.us Sun Jul 1 04:01:19 2012 From: nginx-forum at nginx.us (Jiff) Date: Sun, 1 Jul 2012 00:01:19 -0400 (EDT) Subject: dokuwiki not in root problem of regexp In-Reply-To: <20120630154217.GT6210@craic.sysops.org> References: <20120630154217.GT6210@craic.sysops.org> Message-ID: <99781b1df3ee3fd15d974e2f3e59875b.NginxMailingListEnglish@forum.nginx.org> Hi Francis, Well, I shouldn't work that much ]:-) In fact there was so much tests, comments, etc that I missed the main problem: I use 2 files, the 2nd one being common to different servers in the 1st one; I just didn't saw I was refering to an old version:( Thanks anyway for you patience and hints that helped me to debug that. Jiff Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228124,228150#msg-228150 From nginx-forum at nginx.us Sun Jul 1 04:16:31 2012 From: nginx-forum at nginx.us (Jiff) Date: Sun, 1 Jul 2012 00:16:31 -0400 (EDT) Subject: How can I redirect some IP addresses? Message-ID: 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? I'd also like if I can have a round-robin of redirections (once for amnesty, next to copwatch, etc)? Jiff Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228151,228151#msg-228151 From francis at daoine.org Sun Jul 1 09:55:44 2012 From: francis at daoine.org (Francis Daly) Date: Sun, 1 Jul 2012 10:55:44 +0100 Subject: How can I redirect some IP addresses? In-Reply-To: References: Message-ID: <20120701095544.GU6210@craic.sysops.org> 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 at daoine.org From francis at daoine.org Sun Jul 1 10:11:44 2012 From: francis at daoine.org (Francis Daly) Date: Sun, 1 Jul 2012 11:11:44 +0100 Subject: dokuwiki not in root problem of regexp In-Reply-To: <99781b1df3ee3fd15d974e2f3e59875b.NginxMailingListEnglish@forum.nginx.org> References: <20120630154217.GT6210@craic.sysops.org> <99781b1df3ee3fd15d974e2f3e59875b.NginxMailingListEnglish@forum.nginx.org> Message-ID: <20120701101144.GV6210@craic.sysops.org> On Sun, Jul 01, 2012 at 12:01:19AM -0400, Jiff wrote: Hi there, > Thanks anyway for you patience and hints that helped me to > debug that. That sounds like you've found a working solution -- good work. All of the (current) search results I see for "nginx dokuwiki" seem to indicate to me that installing not in root is a problem for people. When you're happy that what you have does everything it is supposed to, could you post your config (mentioning version numbers) so that searchers in a year will be able to take advantage of your work? This mailing list / forum should be ok; the dokuwiki or nginx documentation wikis would also be good, if you have access. Thanks, f -- Francis Daly francis at daoine.org From nginx-forum at nginx.us Sun Jul 1 16:40:34 2012 From: nginx-forum at nginx.us (Jiff) Date: Sun, 1 Jul 2012 12:40:34 -0400 (EDT) Subject: dokuwiki not in root problem of regexp In-Reply-To: <20120701101144.GV6210@craic.sysops.org> References: <20120701101144.GV6210@craic.sysops.org> Message-ID: <22f5daecb679540c2a41992683387f8b.NginxMailingListEnglish@forum.nginx.org> myserver.org_dokuwiki_http_https_main.conf ================================== # DOKUWIKI NOT-ON-ROOT MAIN FILE: BROWSE HTTP + DANGEROUS AREAS HTTPS #==================================================================== # 2012-07-01 - Author: Jean-Yves F. Barbier - lazyvirus