Nginx Auth Module auth_basic and Flooding/DoS/DDoS

2017-07-05 Thread c0nw0nk
Here is my config : http { limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; limit_conn_zone $binary_remote_addr zone=addr:10m; server { location /secured/ { auth_basic "secured area"; auth_basic_user_file conf/htpasswd; limit_req zone=one burst=5; limit_conn addr 1; } } My q

"aio on" unsupported on centos6.8

2017-07-05 Thread foxgab
it said ""aio on" is unsupported on this platform in /usr/local/nginx/conf/nginx.conf:25" when i apply my conf. see version info bellow: [root]# /usr/local/nginx/sbin/nginx -v nginx version: nginx/1.10.3 [root]# lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4

RE: response headers show wrong time

2017-07-05 Thread Reinis Rozitis
> Hello, > > response headers show wrong time: > > Date: Wed, 05 Jul 2017 19:44:37 GMT > > while system time is set to 22:44:37 (output of the 'date' from command line). > > Any ideas where I can set headers' date to system time? It's not a wrong time just your system has a GMT+3 timezone or E

response headers show wrong time

2017-07-05 Thread ST
Hello, response headers show wrong time: Date: Wed, 05 Jul 2017 19:44:37 GMT while system time is set to 22:44:37 (output of the 'date' from command line). Any ideas where I can set headers' date to system time? Thank you in advance! ST ___ nginx ma

what's the difference between proxy_buffer_size and proxy_buffers

2017-07-05 Thread foxgab
to explain the proxy_buffer_size directive, the document says: "Sets the size of the buffer used for reading the first part of the response received from the proxied server" what does "first part" mean? that is the first packet or what? what's the relationship and difference between between prox

Re: prxy_buffering

2017-07-05 Thread Francis Daly
On Tue, Jul 04, 2017 at 03:33:36AM -0400, charlesparasa wrote: Hi there, > I am trying to check the functionality of proxy_buffering . can you please > provide me with some sample test scenario. The documentation is at http://nginx.org/r/proxy_buffering Is there something specific that is not

Re: proxy_set_header directives don't inherit from father context

2017-07-05 Thread Francis Daly
On Wed, Jul 05, 2017 at 02:57:51PM +0900, nanaya wrote: > On Wed, Jul 5, 2017, at 14:41, foxgab wrote: Hi there, > > i expected the X-Forwarded-For and X-Forwarded-Proto header will be set, > > but it didn't. > > what happend? Your expectation was wrong. > Quite a few of additive configs (proxy

Re: Issues with limit_req_zone.

2017-07-05 Thread Francis Daly
On Mon, Jul 03, 2017 at 02:46:39AM -0400, Vishnu Priya Matha wrote: Hi there, > Then how does the burst_size play a role here ? How is the burst_size be > calculated ? "burst" means, roughly, "let this many happen quickly before fully enforcing the one-per-period rule". > Since requests_per_se