Re: Getting rewritten and encoded/escaped url in nginx module

2014-06-03 Thread Jayadev C
quire looking at the original url to know the correct number of '/'s). Anybody had attempted doing something like this ? or is there an easier way. Jayadev On Tuesday, June 3, 2014 10:17 AM, Maxim Dounin wrote: Hello! On Tue, Jun 03, 2014 at 09:42:41AM -0700, Jayadev C wro

Getting rewritten and encoded/escaped url in nginx module

2014-06-03 Thread Jayadev C
Hi, I am writing a nginx proxy module and want to grab the url which is urlencoded (as the client sends it) and also after rewrite rules are applied.  My typical url looks like : path1/path2/path3/urlencoded(key)?args, after rewriting the url I would love to have is something like : newpat

Adding custom protocol data while creating new keepalive connections

2014-04-07 Thread Jayadev C
Nginx is proxying requests to my custom tcp server. I have my proxy handler to create the right request format and process headers etc. The trouble started when I started using keepalive handler.  I have to add a custom protocol header bytes for every new keepalive connection and skip the he

Re: Keepalive not working with upstream tcp server

2014-04-02 Thread Jayadev C
le in my request flow. Jai On Wednesday, April 2, 2014 7:53 AM, Maxim Dounin wrote: Hello! On Wed, Apr 02, 2014 at 01:01:07AM -0700, Jayadev C wrote: > I am trying to use nginx to proxy my requests to a custom tcp > backend server that I have. I am following the same model as the >

Keepalive not working with upstream tcp server

2014-04-02 Thread Jayadev C
I am trying to use nginx to proxy my requests to a custom tcp backend server that I have. I am following the same model as the default memcached module with in the nginx code base (1.5.10) , the relevant config file attached.  Tried with most of the keepalive options but I still see new connec

nginx module dev: loadbalancer vs upstream handler options

2014-03-12 Thread Jayadev C
First time here, was looking at supporting http protocol (using nginx) over our custom zeromq server talking protocol buf. Read the excelled tutorial by Evan and was also looking at few similar plugins to get an idea. One confusion I have is, I see some plugins like memcache/redis ones where t