websocket causes "client sent invalid method ..."

2015-06-30 Thread snagytx
Hello, I'm trying setup nginx for socket proxy. I was able to find that nginx can be configured to proxy websockets and added an error log file in the server configuration block to isolate the messages, and I get: client sent invalid method while reading client request line, client: XX.XX.XX.1, s

Re: Static content

2015-06-30 Thread Miguel C
You said it yourself: "And, the above configuration is expecting static content on the server where NGinx is installed, when an request is made. But, I expect the static content to be expected from remote server." Nginx expets the file to be on the server, and that's how it works... you need to ei

Re: Static content

2015-06-30 Thread smsmaddy1981
Hi Mike Thanks for your reply I did not understand your suggestion. Can you please elaborate with an example Regards, Maddy Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259989,260003#msg-260003 ___ nginx mailing list nginx@nginx.org http:/

Re: Serving from cache even when the origin server goes down

2015-06-30 Thread Cherian Thomas
Thanks a lot. This is perfect. - Cherian On Mon, Jun 29, 2015 at 10:01 PM, Lucas Rolff wrote: > > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_use_stale > > You can use multiple values e.g. the below is probably a good start: > > proxy_cache_use_stale error timeout inval

Re: unknown directive "thread_pool"

2015-06-30 Thread Valentin V. Bartenev
On Friday 26 June 2015 10:22:59 Maxim Konovalov wrote: > On 6/25/15 8:21 PM, Francis Daly wrote: > > On Wed, Jun 24, 2015 at 06:55:05PM +0300, Maxim Konovalov wrote: > > > > Hi there, > > > >> it seems that you start to learn Russian! :-) > > > > That's the joy of machine translation :-) > > >

Re: Static content

2015-06-30 Thread Miguel C
On Tue, Jun 30, 2015 at 12:19 PM, smsmaddy1981 wrote: > Hi, > I have NGinx 1.8.0 installed successfully and configured NGinx... with > upstream servers provided. NGinx and Services are deployed on separate > machines. Now, when an request is made via NGinx, the service is invoked > resulting in UI

Re: Nginx-1.9.2 fatal code 2 !!

2015-06-30 Thread Valentin V. Bartenev
On Tuesday 30 June 2015 04:28:32 shahzaib shahzaib wrote: > Hi, > > We've just compiled latest nginx-1.9.2 on Debian wheezy 7 in order to > utilize aio threads directive for our storage but nginx started to crash > since we enabled aio threads on it. Following is the compiled options and > log a

Re: Small bug in src/stream/ngx_stream_proxy_module.c

2015-06-30 Thread itpp2012
Roman Arutyunyan Wrote: --- > > On 30 Jun 2015, at 15:01, itpp2012 wrote: > > > > Roman Arutyunyan Wrote: > > --- > >> What compiler do you have? > > > > A proper one :) vc++ > > version? 20

Re: Small bug in src/stream/ngx_stream_proxy_module.c

2015-06-30 Thread Roman Arutyunyan
> On 30 Jun 2015, at 15:01, itpp2012 wrote: > > Roman Arutyunyan Wrote: > --- >> What compiler do you have? > > A proper one :) vc++ version? -- Roman Arutyunyan ___ nginx mailing list nginx@ngi

Re: Small bug in src/stream/ngx_stream_proxy_module.c

2015-06-30 Thread itpp2012
Roman Arutyunyan Wrote: --- > What compiler do you have? A proper one :) vc++ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259969,259991#msg-259991 ___ nginx mailing list nginx@nginx.org

Static content

2015-06-30 Thread smsmaddy1981
Hi, I have NGinx 1.8.0 installed successfully and configured NGinx... with upstream servers provided. NGinx and Services are deployed on separate machines. Now, when an request is made via NGinx, the service is invoked resulting in UI with no static content loaded. I have tried root, rewrite direc

Re: Can thread pool improve performance for such scenario

2015-06-30 Thread Jerry OELoo
Backend is uwsgi TCP protocol. Thanks for your clarify. I am understanding now, Thread pool should not useful to improve my case. On Tue, Jun 30, 2015 at 5:17 PM, Lukas Tribus wrote: >> Hi All: >> I am using Nginx as a reverse proxy which provide a web API (HTTP GET >> ) to client. >> and the bac

Re: Small bug in src/stream/ngx_stream_proxy_module.c

2015-06-30 Thread Roman Arutyunyan
Hello, > On 29 Jun 2015, at 16:05, itpp2012 wrote: > > (1066) : warning C4244: '=' : conversion from 'off_t' to 'size_t', possible > loss of data > > diff line 1066: >if (size > (size_t) limit) { > -size = limit; > +size = (size_t) limit;

RE: Can thread pool improve performance for such scenario

2015-06-30 Thread Lukas Tribus
> Hi All: > I am using Nginx as a reverse proxy which provide a web API (HTTP GET > ) to client. > and the backend application will get request from nginx and do some > time-consuming processing (1-2 seconds) then response result to nginx, > Nginx return result to client. > I think this is synchron

Re: Can thread pool improve performance for such scenario

2015-06-30 Thread shahzaib shahzaib
Hi, This is what they have to say about threads : Offloading read operations to the thread pool is a technique applicable to very specific tasks. It is most useful where the volume of frequently requested content doesn’t fit into the operating system’s VM cache. This might be the case with, for