how to get common name from client cert in TLS connection instead of HTTPS

2016-09-15 Thread Albert Zhang
how to get common name from client cert in TLS connection instead of HTTPS. I am using TLS not https and want to get common name from client cert using nginx plus ami on was, I am using AWS elb(ssl)+nginx client certificate ssl I know use $ssl_client_s_dn but how to get/compare the value here i

Re: How to disable request pipelining on nginx upstream

2016-09-15 Thread hkahlouche
Hello I would like to go back to this item: >> Yes, nginx will process requests one-by-one and won't pipeline >> requests to upstream. Can you please confirm, if no new request is sent to the upstream before the entire response is received for the ongoing request (ongoing request finished)? In

Re: we need an explicit max_fails flag to allow origin error through?

2016-09-15 Thread Maxim Dounin
Hello! On Thu, Sep 15, 2016 at 02:55:47PM +0100, Mark McDonnell wrote: > We have an upstream that we know is serving a 500 error. > > We've noticed that NGINX is serving up a nginx specific "502 Bad Gateway" > page instead of showing the actual Apache origin error that we'd expect to > come thro

we need an explicit max_fails flag to allow origin error through?

2016-09-15 Thread Mark McDonnell
Hello, We have an upstream that we know is serving a 500 error. We've noticed that NGINX is serving up a nginx specific "502 Bad Gateway" page instead of showing the actual Apache origin error that we'd expect to come through. To solve this we've added `max_fail: 0` onto the upstream server (the

Proxy_cache with variable

2016-09-15 Thread Jugurtha
Hello dream team, I have problem when i use "proxy_cache" with a variable ! Using "proxy_cache_purge" (call to proxy_cache) directive with a variable seems to change that variable's value. Tested on the last version nginx/1.11.4 (on Sles11 SP3) I would change my name cache dynamically The follo

Re: Run time php variable change

2016-09-15 Thread Tseveendorj Ochirlantuu
Great. Thank you. On Thu, Sep 15, 2016 at 4:45 PM, basti wrote: > It should work per location. I have nothing found in the docs at the > moment. > But be warned if you use more than one value here you must do something > like > > fastcgi_param PHP_VALUE "register_globals=0 > display_errors=0";

Re: Run time php variable change

2016-09-15 Thread basti
It should work per location. I have nothing found in the docs at the moment. But be warned if you use more than one value here you must do something like fastcgi_param PHP_VALUE "register_globals=0 display_errors=0"; or fastcgi_param PHP_VALUE "register_globals=0\ndisplay_errors=0"; On 15.09.

Re: Run time php variable change

2016-09-15 Thread Tseveendorj Ochirlantuu
Hello, Basti thank you for help. Does this override system wide or it applied to /foo location ? Best regards, Tseveen On Thu, Sep 15, 2016 at 4:20 PM, basti wrote: > Hello, > > you can use "fastcgi_param PHP_VALUE" to change PHP values. > > For example: > > location /foo { > >location ~

Re: Run time php variable change

2016-09-15 Thread basti
Hello, you can use "fastcgi_param PHP_VALUE" to change PHP values. For example: location /foo { location ~ ^(.*.\.php)(.*)$ { fastcgi_buffers 4 256k; fastcgi_buffer_size 128k; fastcgi_param PHP_VALUE "max_execution_time = 60"; } } Best Regards, Basti On 15.09.2016 02:

Re: no live upstreams and NO previous error

2016-09-15 Thread drookie
Oh, solved. Upstreams do respond with 500. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269577,269584#msg-269584 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx