Re[2]: proxy_cache and internal redirect

2013-02-28 Thread Nicholas Kostirya
But, I want use both redirect and save response with 'X-Accel-Redirect' in cache to prevent multiple requests to backend. NIck Четверг, 28 февраля 2013, 20:35 +04:00 от Maxim Dounin : >Hello! > >On Thu, Feb 28, 2013 at 03:50:19PM +0400, Nick wrote: > >> Hello. >> Can you please tell how to ena

Re: Optimal nginx settings for websockets sending images

2013-02-28 Thread michael.heuberger
PS: happy to send the whole code by email if that's better? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236601,236753#msg-236753 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Optimal nginx settings for websockets sending images

2013-02-28 Thread michael.heuberger
Thanks man :) > > proxy_buffers 8 2m; > > proxy_buffer_size 10m; > > proxy_busy_buffers_size 10m; > > Buffers used looks huge, make sure you have enough memory. Mmmhhh, do you think I should remove these and trust nginx's default values for these buffer? > > prox

Location regex + if + basic auth to restrict directory access

2013-02-28 Thread B.R.
Hello, I am using basic auth + $remote_user variable send to the back-end application to change context depending on the logged-in user. The thing is, even if the page rendered by the back-end uses nginx user authentication, resources from a directory are still allowed for everyone. My 'document

Re: Is it possible that nginx will not buffer the client body?

2013-02-28 Thread André Cruz
On Feb 28, 2013, at 6:51 PM, Valentin V. Bartenev wrote: > On Thursday 28 February 2013 21:36:23 André Cruz wrote: >> I'm also very interested in being able to configure nginx to NOT proxy the >> entire request. >> > [...] > > Actually, you can. > > http://nginx.org/r/proxy_set_body > http://n

Re: Is it possible that nginx will not buffer the client body?

2013-02-28 Thread Valentin V. Bartenev
On Thursday 28 February 2013 21:36:23 André Cruz wrote: > I'm also very interested in being able to configure nginx to NOT proxy the > entire request. > [...] Actually, you can. http://nginx.org/r/proxy_set_body http://nginx.org/r/proxy_pass_request_body wbr, Valentin V. Bartenev ___

Re: Is it possible that nginx will not buffer the client body?

2013-02-28 Thread Maxim Dounin
Hello! On Thu, Feb 28, 2013 at 05:36:23PM +, André Cruz wrote: > I'm also very interested in being able to configure nginx to NOT > proxy the entire request. > > Regarding this patch, > https://github.com/alibaba/tengine/pull/91, is anything > fundamentally wrong with it? I don't understa

Re: Is it possible that nginx will not buffer the client body?

2013-02-28 Thread André Cruz
I'm also very interested in being able to configure nginx to NOT proxy the entire request. Regarding this patch, https://github.com/alibaba/tengine/pull/91, is anything fundamentally wrong with it? I don't understand Chinese so I'm at a loss here... Best regards, André Cruz On Feb 28, 2013, at

Re: proxy_cache and internal redirect

2013-02-28 Thread Maxim Dounin
Hello! On Thu, Feb 28, 2013 at 03:50:19PM +0400, Nick wrote: > Hello. > Can you please tell how to enable caching of responses with > 'X-Accel-Redirect' headers. > Nick. You may do so by using proxy_ignore_headers X-Accel-Redirect; This will prevent nginx from doing a redirect based on

Re: Exchange / Outlook - RPC Method and Error 405

2013-02-28 Thread Maxim Dounin
Hello! On Thu, Feb 28, 2013 at 09:15:52AM -0500, gmor wrote: > Hi, > > Thanks for the quick response. I've done what you suggested with the > following results: > > >A > >simple way to do this would be to just throw away all funny > >regexp locations you wrote in your config, and start with a s

Re: Is it possible that nginx will not buffer the client body?

2013-02-28 Thread double
> I know nginx team are working on it. You can wait for it. Hopefully they will find a solution! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,234926,236723#msg-236723 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/

Re: Exchange / Outlook - RPC Method and Error 405

2013-02-28 Thread gmor
Hi, Thanks for the quick response. I've done what you suggested with the following results: >A >simple way to do this would be to just throw away all funny >regexp locations you wrote in your config, and start with a simple >location / { >proxy_pass http://backend; >} Absolutely happy to. Now

Re: Exchange / Outlook - RPC Method and Error 405

2013-02-28 Thread Maxim Dounin
Hello! On Thu, Feb 28, 2013 at 03:33:06AM -0500, gmor wrote: [...] > 1. How can I allow this Method, if that is the issue? > 2. If what I'm doing is fundamentally not possible, please just let me > know! The 405 error, at least if returned by nginx, means that module which used to handle the r

proxy_cache and internal redirect

2013-02-28 Thread Nick
Hello. Can you please tell how to enable caching of responses with 'X-Accel-Redirect' headers. Nick. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Want to access UNIX environment variable

2013-02-28 Thread Jonathan Matthews
On 28 February 2013 06:04, amodpandey wrote: > Let me put what I want to achieve. > > Before that I want to know what is this 'env' global directive for? I don't know. The documentation suggests it's not going to solve the problem you want; but I've not used it. > I want to maintain a single set

Exchange / Outlook - RPC Method and Error 405

2013-02-28 Thread gmor
Hi all, I've tried to do some research on this already, but without much luck. So I'm hoping others may be able to assist. I'm trying to use Nginx as a Reverse Proxy back to an Exchange 2007 environment. - Nginx is terminating to HTTPS / SSL connection for the Client - Nginx is then proxying to