Websocket Validation

2016-05-17 Thread vikrant singh
Hello, I use nginx as a proxy, and establish a webscoket between client and backend.I validate user's cookies before establish WS and when WS is in use I validate cookies on backend periodically. With this set up in place when a user's cookie expires , an established WS will remain in use unt

Re: logging

2016-01-11 Thread vikrant singh
Only time you see a log for a web socket connection is when it get disconnected. So you will not see a log when it connects, transfer data over it. On Mon, Jan 11, 2016 at 8:21 PM, tammini wrote: > Does that mean once a websocket connection is opened successfully, any > subsequent requests sent

Fwd: Config Guidance

2015-09-23 Thread vikrant singh
It seems I sent to wrong mailing list... got no response. So forwarding this question at "nginx@nginx.org" -- Forwarded message ------ From: vikrant singh Date: Tue, Sep 22, 2015 at 12:38 PM Subject: Config Guidance To: nginx-fo...@nginx.us Hello, I have quick question on

Re: upstart conf for managing nginx

2015-07-29 Thread vikrant singh
Jul 24, 2015 at 04:09:02PM -0700, vikrant singh wrote: > > Hi there, > > > I wrote a small upstart script to stop/start nginx through upstart. This > is > > how it looks > > I do not have an upstart system to test on, but: > > * comparing with http://wiki.nginx.org

upstart conf for managing nginx

2015-07-24 Thread vikrant singh
Hello, I wrote a small upstart script to stop/start nginx through upstart. This is how it looks description "nginx http daemon" start on (filesystem and net-device-up IFACE=lo) stop on runlevel [!2345] expect deamon respawn respawn limit 10 5 chdir /usr/local/nginx exec ./nginx I am running ngin

Re: DNS configuration to invoke complete URL

2015-05-21 Thread vikrant singh
First thing I would have done is to check max open file limit in system where I am getting it error. YOu can check that by "ulimit -a" command. If it is very low then increasing it might fix it. Alternatively you can try playing with config NGINX http://wiki.nginx.org/CoreModule#worker_rlimit_nofi

Question on Nginx Proxy Installation

2015-04-21 Thread vikrant singh
Hello, Following is a problem I am facing while using nginx as a proxy, please provide me feedback and ideas to solve it. I have a zookeeper based service discovery setup. For some of the services I want to use nginx as a proxy. Flow I am planning to set is like this.. Client connects to nginx wit