merely testing for $ssl_protocol breaks upstream proxy only with IE8

2015-10-05 Thread rpriyana
I am on nginx 1.9.4 One of my https site cannot be accessed by IE8 in XP and some IE in Win 7 (getting 404). It seems nginx do the try_files locally and gave up, not going for @proxy. Works fine with other browser. I narrowed it down to this sample config # sample config that has issue #

Re: Nginx, SOAP and POST redirect

2015-10-05 Thread Francis Daly
On Mon, Oct 05, 2015 at 01:21:47AM -0400, router_master wrote: Hi there, I'm a bit unclear on what precisely you are asking. I make some suggestions below; perhaps you could reply with the details of what your clients do, and what your upstream server does. That may help make clear where the act

Cant make Proxy Next Upstream work

2015-10-05 Thread Agus
Hi guys! I have a configuration taht cant make it work Here is the data. First i check taht if i come from location2 with geo so taht it uses lcoation 2 backends.. But as there are things taht are not in location2 i need to go to default location in case there is an 404 o 403 as git shows me 403 a

Re: 301 executes before authentication

2015-10-05 Thread Robert Paprocki
Rewrites will execute before authentication module handlers run; this is a function of how Nginx is designed, and this order isn't configurable. See http://forum.nginx.org/read.php?2,41891,43112#msg-43112 and http://www.nginxguts.com/2011/01/phases/. On Mon, Oct 5, 2015 at 12:42 PM, Richard Stanwa

Re: 301 executes before authentication

2015-10-05 Thread Richard Stanway
How are you testing? 301 is permanent so it may be cached if you added the auth after the redirect. Try testing with curl from the command line to verify your results. On Mon, Oct 5, 2015 at 7:05 PM, Grant wrote: > I have a server block that contains the following: > > auth_basic "Please log in.

fastcgi_cache / proxy_cache -> Mobile / Desktop

2015-10-05 Thread ariel_esp
Hi, Actually, I use fastcgi_cache / proxy_cache but, sometimes, I have problem with how this cache is read... causing confusion for some sites when open mobile ou desktop version. In sites/systems, there are the check for mobile detect, common like http://detectmobilebrowsers.com but, for unknow

301 executes before authentication

2015-10-05 Thread Grant
I have a server block that contains the following: auth_basic "Please log in."; location = / { return 301 https://$host:$server_port/folder/; } I noticed that /folder/ is appended to the URL before the user is prompted for authentication. Can that behavior be changed? - Grant _

Nginx stats - why _handled_ value differs

2015-10-05 Thread Firm
Hi, Stats from server: $ curl 'http://127.0.0.1/nginx-stats'; sleep 1; curl 'http://127.0.0.1/nginx-stats' Active connections: 25849 server accepts handled requests 917796 917796 13323443 Reading: 0 Writing: 668 Waiting: 25180 Active connections: 25860 server accepts handled requests 918627 918

Re: Can't find description for "post_action" in documentation

2015-10-05 Thread Alt
Hello, I've found this archive explaining why it's not in the documentation: http://mailman.nginx.org/pipermail/nginx/2012-November/036199.html Best Regards Posted at Nginx Forum: http://forum.nginx.org/read.php?2,262008,262012#msg-262012 ___ nginx m

Can't find description for "post_action" in documentation

2015-10-05 Thread xore
Hello. I can't find description for "post_action" in documentation. Earlier (in static version of documentation) was description of this directive. This directive is still actual? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,262008,262008#msg-262008 __

Re: a problem with chunked encoding

2015-10-05 Thread Maxim Dounin
Hello! On Sun, Oct 04, 2015 at 06:03:17AM -0400, esxgx wrote: > I wrote a php script, for socks over http proxy, generating “chunked > encoding” format, adding a header(Transfer-Encoding: chunked) > and I first used apache, it works well. > But when I used nginx/php-fpm, I found the response chun

stream, it always aborts the first server in upstream

2015-10-05 Thread itpp2012
A strange 'bug' in stream, it always aborts the first server in upstream eventhough there is nothing wrong with the server. 2015/10/05 12:21:01 [info] 1436#684: *1 client 192.168.xxx.xxx:1994 connected to 0.0.0.0: 2015/10/05 12:21:01 [info] 1436#684: *1 proxy 192.168.xxx.xxx:1493 connected to

Re: Nginx, SOAP and POST redirect

2015-10-05 Thread reallfqq-nginx
Hello, Since you talk about using an authentication header, it seems to me you are using the basic access authentication HTTP method.Have you had a look at the (standard) basic authentication nginx module? Maybe could you then apply basic authentication before applying some crafted redirection r