Re: limit_req per subnet?

2016-12-29 Thread Grant
>> I'm looking for something that can >> be implemented independently of the backend, but that doesn't seem to >> exist in nginx. > > http://nginx.org/r/limit_req_zone > > You can define the "key" any way that you want. > > Perhaps you can create something using "geo". Perhaps you want "the first >

Re: cache file is too small

2016-12-29 Thread Maxim Dounin
Hello! On Thu, Dec 29, 2016 at 12:50:36AM -0500, omkar_jadhav_20 wrote: > I am using nginx running with version 1.10.2 > Also could you please suggest what is the permanent solution for this also The message suggests the cache directory was used with nginx 1.11.6+. If this is not something you

Re: Nginx authentication based on parameterized url

2016-12-29 Thread Francis Daly
On Wed, Dec 21, 2016 at 05:19:55AM -0500, tmuesele wrote: Hi there, > I need an authentication based on a parameterized class call in a url. For > example the url: > > https://sample.com/index.php?cl=accesstestprivate > > should be access-able by IP address 192.168.1.1, if the request doesnt co

Re: limit_req per subnet?

2016-12-29 Thread Francis Daly
On Wed, Dec 28, 2016 at 04:16:06PM -0800, Grant wrote: Hi there, > I'm looking for something that can > be implemented independently of the backend, but that doesn't seem to > exist in nginx. http://nginx.org/r/limit_req_zone You can define the "key" any way that you want. Perhaps you can crea

Re: rewrite cycle

2016-12-29 Thread Francis Daly
On Thu, Dec 15, 2016 at 01:18:55PM +, Francis Daly wrote: > On Thu, Dec 15, 2016 at 02:30:17PM +0300, Руслан Закиров wrote: Hi there, You got the right answer from Maxim. I had missed that > > location ~ ^/([A-Z_].*)$ { > > rewrite ^/(.*)$ /bin/view/$1; > > } th

Re: setting up a forward proxy for a few specific website only, and block the rest

2016-12-29 Thread Francis Daly
On Wed, Dec 14, 2016 at 01:09:32AM -0500, toffs.hl wrote: Hi there, > 1) Setup a nginx forward proxy, nginx is not a (forward) proxy. If you want to make it be one, you will have significant coding to do. The rest of what you want sounds like it should be straightforwardly available in any re

Re: How do I rewrite files, but only, if they are in one special folder?

2016-12-29 Thread Francis Daly
On Tue, Dec 13, 2016 at 01:29:17PM -0500, Joergi wrote: Hi there, > > rewrite ^/([^/]*)\.php5 /$1.php permanent; > > rewrite ^(/wiki/[^/]*\.php)5 $1 permanent; > > You may want to restrict these to the locations that match their > > prefixes, depending on what else is happening. > > What do