Re: Logging header values from the first upstream

2013-10-10 Thread Matt Spitz
Perfect. Thank you very much! -- Posted via http://www.ruby-forum.com/. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

How to tell Nginx not to decode URL for proxy_pass?

2013-10-10 Thread Ville Mattila
Hi, I need to pass a certain URI namespace to an upstream servers, while taking away the prefix. Consider following configuration: location ^~ /going-to-upstream/ { access_log off; rewrite /upstream(/.*) $1 break; proxy_pass http://upstream; } location / {

Re: Logging header values from the first upstream

2013-10-10 Thread Maxim Dounin
Hello! On Fri, Oct 11, 2013 at 12:27:34AM +0200, Matt Spitz wrote: > The HttpUpstreamModule states that variable values for > $upstream_http_$HEADER are only valid for the last upstream accessed > during a request. I'd like to know if there's a workaround. [...] The $upstream_* variables are c

Logging header values from the first upstream

2013-10-10 Thread Matt Spitz
The HttpUpstreamModule states that variable values for $upstream_http_$HEADER are only valid for the last upstream accessed during a request. I'd like to know if there's a workaround. Specifically, I'm setting (and then clearing) headers in my first upstream to get request-specific information li

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Maxim Dounin
Hello! On Thu, Oct 10, 2013 at 01:35:00PM -0400, itpp2012 wrote: > > Correct. One nginx process can handle multiple requests, it's one > > PHP process which limits you. > > Not really, use the NTS version of php not the TS, and use a pool as > suggested, e.a.; > > # loadbalancing php >

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread itpp2012
> Correct. One nginx process can handle multiple requests, it's one > PHP process which limits you. Not really, use the NTS version of php not the TS, and use a pool as suggested, e.a.; # loadbalancing php upstream myLoadBalancer { server 127.0.0.1:19001 weight=1 fail_timeout=5

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Ben Johnson
On 10/10/2013 11:26 AM, Maxim Dounin wrote: > Hello! > > On Thu, Oct 10, 2013 at 11:13:40AM -0400, Ben Johnson wrote: > > [...] > >> Well, after all of the configuration changes, both to nginx and PHP, the >> solution was to add the following header to the response: >> >> header('Content-Encod

Re: Getting forward secrecy enabled

2013-10-10 Thread mex
hi darren, your ciphers look very good! i included your suggestion in my ssl-guide, looking forward to perftest those cipher_suites. regards, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243341,243594#msg-243594 ___ nginx mailin

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Maxim Dounin
Hello! On Thu, Oct 10, 2013 at 11:13:40AM -0400, Ben Johnson wrote: [...] > Well, after all of the configuration changes, both to nginx and PHP, the > solution was to add the following header to the response: > > header('Content-Encoding: none;'); Just in case: this is very-very wrong, there i

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Ben Johnson
On 10/8/2013 11:48 AM, Maxim Dounin wrote: > Hello! > > On Mon, Oct 07, 2013 at 10:57:14PM -0400, B.R. wrote: > > [...] > >> I then noticed on the capture that PHP was rightfully sending the content >> in 2 parts as expected but somehow nginx was still waiting for the last >> parto to arrive b

RE: unicorn as simple cgi without rails

2013-10-10 Thread nomad Bellcam
On 10 Oct 2013 10:48, "nomad Bellcam" wrote: > my question is this: does it make any sense at all to use unicorn as a ruby > cgi handler if i am not also using rails? This is a perfectly sensible thing to consider doing; I do that myself for some sites. However, this may not be the best for

Re: unicorn as simple cgi without rails

2013-10-10 Thread Jonathan Matthews
On 10 Oct 2013 10:48, "nomad Bellcam" wrote: > my question is this: does it make any sense at all to use unicorn as a ruby cgi handler if i am not also using rails? This is a perfectly sensible thing to consider doing; I do that myself for some sites. However, this may not be the best forum on w

unicorn as simple cgi without rails

2013-10-10 Thread nomad Bellcam
hello, i recently set up a new server upon which i installed nginx to try it out (and which i have been quite happy with since). my website is mostly static with some small cgi areas, and i like to use ruby for the cgi. when i did my research for the best ruby cgi handler for nginx, unicorn figu