Re: Multiple matching limit_req

2015-01-09 Thread Joyce Babu
Hi Francis, Thank you for the clever solution. I have updated my server configuration with the change and it is now working. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: download and movie alias

2015-01-09 Thread Francis Daly
On Sat, Jan 10, 2015 at 12:11:20AM +0100, Silvio Siefke wrote: Hi there, > I understand not why the link www.example.com/download > not work but www.example.com/download/ works. The request /download does not match either of these location{} blocks. > location ~ ^/video/(.*)$ { > location ~

download and movie alias

2015-01-09 Thread Silvio Siefke
Hello, i use static directory for my css files, video files and download directory. I understand not why the link www.example.com/download not work but www.example.com/download/ works. Has someone an idea what is wrong? # video files for all websites location ~ ^/video/(.*)$ { alias

Re: limit_conn module exclude also on Maxim Dunin recommended code

2015-01-09 Thread Francis Daly
On Thu, Jan 08, 2015 at 12:31:23PM -0500, ASTRAPI wrote: Hi there, > Ok with the ip's but i can' figure out how to fix th other problem with > exclude ip's for limit_conn_zone :( I'm confused why you're confused. You originally had limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_r

Re: Multiple matching limit_req

2015-01-09 Thread Francis Daly
On Fri, Jan 09, 2015 at 07:18:37PM +0530, Joyce Babu wrote: Hi there, > I would like to apply rate limiting based on 3 different criteria. > > 1. CDN should have rate limit of 100 r/s (identified by $http_host) > 2. Whitelisted bots should have a rate limit of 15 r/s (identified by > $http_user_

Re: How to deny access to a folder, but allow access to every subfolders (wildcard)

2015-01-09 Thread B.R.
nginx provides a prefix to match exact URIs: location = /members { deny all; } All the different prefixes and their use can be found in the location directive documentation. You do not need to set any location for "/members/.+

Re: How to use Nginx to restrict access to everyfiles to 127.0.0.1, except the php files in /

2015-01-09 Thread B.R.
I suggest you put the generic \.php$ regex location into the / default prefix location, like : location / { location \.php$ { [...] } } This avoids having regex location at the first level, since they are sensitive to order. Why using regex locations for individual files? The foll

Multiple matching limit_req

2015-01-09 Thread Joyce Babu
I would like to apply rate limiting based on 3 different criteria. 1. CDN should have rate limit of 100 r/s (identified by $http_host) 2. Whitelisted bots should have a rate limit of 15 r/s (identified by $http_user_agent) 3. All other users should have a rate limit of 5 r/s The rules should be a

RE: Nginx Configuration saying Not found. Why and How to get rid of it?

2015-01-09 Thread Lukas Tribus
> Hi, > > I am compiling and installing NGinx from source > [...] > checking for sys/filio.h ... not found > checking for /dev/poll ... not found > checking for kqueue ... not found > checking for crypt() ... not found > checking for F_READAHEAD ... not found > checking for F_NOCACHE ... not found

Nginx Configuration saying Not found. Why and How to get rid of it?

2015-01-09 Thread nurrony
Hi, I am compiling and installing NGinx from source and installed all following lib sudo yum install gcc \ gcc-c++ \ pcre-devel \ zlib-devel \ make \ unzip \ openssl-devel \ libaio-devel \ glibc \ glibc-devel \ glibc-headers \ libevent \ linux-vdso.so.1 \ libpthread.so.0 \ libcrypt.so.1 \ libstd

A build of nginx with static-linked OpenSSL fails on Mac

2015-01-09 Thread cubicdaiya
Hello. A build of nginx with static-linked OpenSSL seems to fail on Mac. $ uname -ar Darwin host 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 $ cd nginx-1.7.9 $ ./configure \ --with-http_ssl_module \ --with-openssl=../openssl-1