proxy_next_upstream

2016-03-02 Thread Frank Liu
Does the proxy_next_upstream "timeout" apply to both connect timeout and read timeout? Is it possible to configure proxy_next_upstream to use connect timeout only, not the read timeout? In case a connection is made and the request is sent, I don't want to re-try next upstream even when the read tim

Re: Nginx caching no header content-length

2016-03-02 Thread Maxim Dounin
Hello! On Wed, Mar 02, 2016 at 10:33:34PM +0530, Vikas Parashar wrote: [...] > don't know how to do it. Check your configuration for any modules which are expected to change content. Disable them (comment out relevant directives out or switch off in a particular location). In particular, ch

Re: Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Thanks for your promot response. location /x { error_log /var/log/nginx/contenttroubleshooterror.log debug; #chunked_transfer_encoding off; #proxy_http_version 1.1; #proxy_buffering on; #proxy_pass_header Content-Length; proxy_pass http://tomcat:8080/x; proxy_cache my_cache; #

Re: Nginx caching no header content-length

2016-03-02 Thread Maxim Dounin
Hello! On Wed, Mar 02, 2016 at 09:58:26PM +0530, Vikas Parashar wrote: > I am using nginx(caching server) in front my tomcat. My tomcat is serving > header(content-length). But my nginx is not serving header content-length. > > However, i can put that header in my config with some static value t

Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Hi, I am using nginx(caching server) in front my tomcat. My tomcat is serving header(content-length). But my nginx is not serving header content-length. However, i can put that header in my config with some static value then it will serve. But, in my case, the content length is coming from tomcat

Re: Request processing rate and reverse proxy

2016-03-02 Thread Maxim Dounin
Hello! On Mon, Feb 29, 2016 at 05:05:16PM +0100, Guillaume Charhon wrote: > I have setup nginx 1.9.3 as a reverse proxy [1] with a rate limitation per > server [2]. The rate limitation does not work on this scenario. The rate > request limitation works well if I use nginx as a normal webserver (f

Re: openstack swift as a cache proxy for nginx, swift proxy report 401 error when authenticate

2016-03-02 Thread Andrew Hutchings
Hi Amy, I suggest trying to talk to the Swift community. If you can't get any more information than that out of the Swift logs it is going to be difficult for you to determine what it is actually looking for. In general though you probably shouldn't be using a web browser to talk to an OpenS

Re: Request processing rate and reverse proxy

2016-03-02 Thread Guillaume Charhon
Hello guys, Is it a bug, something not implemented or a mistake on my side? Best, On Mon, Feb 29, 2016 at 5:05 PM, Guillaume Charhon < guilla...@databerries.com> wrote: > Hello, > > I have setup nginx 1.9.3 as a reverse proxy [1] with a rate limitation per > server [2]. The rate limitation does

Re: openstack swift as a cache proxy for nginx, swift proxy report 401 error when authenticate

2016-03-02 Thread AmyAmy
Thanks for answer. As my swift server is serverd as a proxy server, I can look at swift proxy-server's log which I have mention on my post, it report like this : Mar 1 20:43:48 localhost journal: proxy-logging 192.168.1.1 192.168.1.1 01/Mar/2016/20/43/48 GET /auth/v1.0 HTTP/1.0 401 - Mozilla/5.0%

Re: openstack swift as a cache proxy for nginx, swift proxy report 401 error when authenticate

2016-03-02 Thread Andrew Hutchings
Hi Amy, On 02/03/16 03:19, AmyAmy wrote: hello, everybody. I have search for the answer on the internet, and referent this solution: https://forum.nginx.org/read.php?2,250458,250463#msg-250463 Then ,I change my nginx configuration like this: server { listen 80; serve

Re: Does nginx support openstack swift API?

2016-03-02 Thread AmyAmy
Hi, hexiay, I'm trying to find a way to use OpenStack SWIFT with nginx too. After read your post, I got a solution and try to configure Nginx with ngx_http_auth_request_module, but what I got is a 401 error. Based on your answer, you have found a solution, Do you mind sharing it? Or any one has

Re: enable reuseport then only one worker is working?

2016-03-02 Thread Andrew Hutchings
Hi, Unfortunately no, the FreeBSD kernel doesn't have the feature implemented in the way you would want to use it. Kind Regards Andrew On 02/03/16 00:13, meteor8488 wrote: Hi Guys, Thanks for all these information. But, is there any way for FreeBSD to enable it? Posted at Nginx Forum: htt