Re: is it possible to use multiple sub_filter in one location?

2015-05-20 Thread Florin Andrei
I've solved it by recompiling Nginx to include the nginx_substitutions_filter module: https://github.com/yaoweibin/ngx_http_substitutions_filter_module This module allows multiple subs_filter statements per location. Seems to work just fine in my tests. -- Florin Andrei http://florin.myip.or

Re: Case insensitive exact location match?

2015-05-20 Thread E.B.
> > 2^4 = all 16 combinations. Hopefully the 'test' sting is only 4 > > characters > > long... > > > > Case-insensitiveness is no-trivial check, and if needed PCRE are here > > for > > that through regex locations. > > What is wrong with them already?? > > At assembly level alot, +-20 bytes includ

is it possible to use multiple sub_filter in one location?

2015-05-20 Thread Florin Andrei
Trying to do this: location /whatever/ { proxy_buffering off; proxy_pass http://11.22.33.44:; sub_filter '"df":"https://df-foo";' '"df":"https://df-bar";'; sub_filter '"pr":"https://pr-foo";' '"pr":"https://pr-bar";'; sub_filter_once off; sub_filter_types *; } But I'm

Re: Satistfy any not working as expected

2015-05-20 Thread Arno0x0x
Thank you ! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258955,259026#msg-259026 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Satistfy any not working as expected

2015-05-20 Thread Maxim Dounin
Hello! On Wed, May 20, 2015 at 01:12:26PM -0400, Arno0x0x wrote: > Thanks again for your explanations, they make sense. So I've put back the > "deny all;" statement. I get the 403 unauthorized message back. And there's > indeed some good indication in the error log, showing that my auth_request >

Re: Simple timeout module

2015-05-20 Thread Valentin V. Bartenev
On Wednesday 20 May 2015 13:03:19 donatasm wrote: > I'm trying to build a simple timeout module using nginx timers. At the > beginning of a request I'm firing up a timer and after time interval elapses > I want to check if request has already completed, and if not, finalize it, > for example it wit

Re: Simple timeout module

2015-05-20 Thread Maxim Dounin
Hello! On Wed, May 20, 2015 at 01:03:19PM -0400, donatasm wrote: > I'm trying to build a simple timeout module using nginx timers. At the > beginning of a request I'm firing up a timer and after time interval elapses > I want to check if request has already completed, and if not, finalize it, > f

Re: Satistfy any not working as expected

2015-05-20 Thread Arno0x0x
Hi Maxim, Thanks again for your explanations, they make sense. So I've put back the "deny all;" statement. I get the 403 unauthorized message back. And there's indeed some good indication in the error log, showing that my auth_request script does the job, and then the login page returns the 403 st

Simple timeout module

2015-05-20 Thread donatasm
I'm trying to build a simple timeout module using nginx timers. At the beginning of a request I'm firing up a timer and after time interval elapses I want to check if request has already completed, and if not, finalize it, for example it with NGX_HTTP_REQUEST_TIME_OUT. I have created a filter modul

Re: long wait configtest

2015-05-20 Thread zilog80
Thank you Valentin! Today I have re-test the command and I waited for 3 minutes before command finishes I'm surprised I use google DNS but usually its very fast,i don't know where is wrong. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258721,259015#msg-259015

Re: Case insensitive exact location match?

2015-05-20 Thread itpp2012
B.R. Wrote: --- > 2 > ​^4 = all 16 combinations. Hopefully the 'test' sting is only 4 > characters > long... > > Case-insensitiveness is no-trivial check, and if needed PCRE are here > for > that through regex locations. > What is wrong with them

Re: Case insensitive exact location match?

2015-05-20 Thread B.R.
2 ​^4 = all 16 combinations. Hopefully the 'test' sting is only 4 characters long... Case-insensitiveness is no-trivial check, and if needed PCRE are here for that through regex locations. What is wrong with them already?​ --- *B. R.* On Wed, May 20, 2015 at 12:03 PM, itpp2012 wrote: > J.J J Wr

Re: Case insensitive exact location match?

2015-05-20 Thread itpp2012
J.J J Wrote: --- > No, exact and inclusive match are case sensitive. > > You can write it in two location : > location = /test > location = /TEST > > Personally, I think it's a bad practice to differentiate requests by > the > case(ness) o

Re: Case insensitive exact location match?

2015-05-20 Thread J.J J
No, exact and inclusive match are case sensitive. You can write it in two location : location = /test location = /TEST Personally, I think it's a bad practice to differentiate requests by the case(ness) of URI. On Tue, May 19, 2015 at 11:07 AM, E.B. wrote: > I know how to do case insensi

Allow all Access-Control-Allow-Headers

2015-05-20 Thread cyrille
Hi, I have a nginx in front of many differrents web applications. At this time a have a generic configuration for all applications. Now I need to allow all Access-Control-Allow-Headers but I did not find how to do this. One of the web application behind my nginx reverse proxy set custom headers.