auth_request + php-fpm + POST request

2015-04-11 Thread Arno0x0x
Hi, I'm using the auth_request module to enable custom (2fa) authentication to protect my whole website, no matter the various applications I host on this website. So the auth_request directive is set at the "server" level. The authentication subrequest works fine, except for client POST requests

Re: Avoid logging specific user agents requests

2015-04-11 Thread B.R.
I tend to use official documentation only, and I run servers, not Windows. However, thanks for the pointer: the answer might be that 'if' parameter... However not available in the stable branch yet. I will see to it. Thanks again! --- *B. R.* On Sat, Apr 11, 2015 at 2:10 PM, itpp2012 wrote: > P

Re: limit_rate for POST targets ?

2015-04-11 Thread Justin
hmm that is rate limiting req/s i am looking for an exact limit_rate equivalent - which is bytes/second. > On 11 Apr 2015, at 10:13 pm, itpp2012 wrote: > > Lua would be a way to go, > ea. https://github.com/fanhattan/lua-resty-rate-limit > > Posted at Nginx Forum: > http://forum.nginx.org/re

Re: limit_rate for POST targets ?

2015-04-11 Thread itpp2012
Lua would be a way to go, ea. https://github.com/fanhattan/lua-resty-rate-limit Posted at Nginx Forum: http://forum.nginx.org/read.php?2,257905,257965#msg-257965 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Avoid logging specific user agents requests

2015-04-11 Thread itpp2012
Page 18 from nginx for Windows - documentation 1.3; map $request_uri $loggablevhts { default 1; /ngxvtstatus 0; # zero=do not log /vtsvalues.js 0; # zero=do not log /vtsvalues-eop.js 0; # zero=do not log /ngxvtstatus/format/json0; # zero=do not log } map $remote_addr $lclad

Re: limit_rate for POST targets ?

2015-04-11 Thread Justin
limit_rate it only applies to GET ( and works great ) "response transmission to a client" but not POST (reading data from a client) > On 11 Apr 2015, at 9:24 pm, B.R. wrote: > > The docs suggest using 'if', even though it is uncertain under which > conditions this directive works/should be us

Re: limit_rate for POST targets ?

2015-04-11 Thread B.R.
The docs suggest using 'if', even though it is uncertain under which conditions this directive works/should be used or not... You could either set the logic in 'if' or use a map matching the $http_method variable and setting an i

Avoid logging specific user agents requests

2015-04-11 Thread B.R.
Hello, Following: http://trac.nginx.org/nginx/ticket/713 How does one avoid logging (ie set 'access_log off') requests from specific user agents? Using 'if' would mean to use 'return' inside (as it is advised to do with that directive, not continuing the normal process). Using 'map', as shown in

Re: alias vs root in regex location

2015-04-11 Thread Francis Daly
On Fri, Apr 10, 2015 at 07:09:43PM -0400, avi9526 wrote: Hi there, > Trying to serve nagios web GUI through nginx. > location ~ "^/nagios/(.+?\.php)(/.*)?$" > { > alias "/usr/share/nagios3/htdocs/"; > try_files $1 $uri $uri/ /nagios/index.php; > location ~* ^/cgi-b

Re: Nginx reverse proxy multi upstream (multiples sites)

2015-04-11 Thread Francis Daly
On Fri, Apr 10, 2015 at 06:29:38PM -0400, cloud devops wrote: Hi there, > Yes "market.cloud.com" and "panel.cloud.com" resolve to the nginx server. > My issue is to point the nginx server to many backend server, the nginx > requires to have different location which cause probleme to navigate in