RE: ipv6 name resolution dependency/requirement

2020-05-06 Thread pankaj
ok, i was able to nail it down and get it to work.Sharing details here for reference in case someone else run into the same issue:the setting which nginx reference to use ipv6 (AF_INET6) name resolution is net.ipv6.conf.eth0.disable_ipv6which you can set with this command :sysctl -w net.ipv6.conf.e

ipv6 name resolution dependency/requirement

2020-05-06 Thread pankaj
I am running into a strange issue that nginv upstream is not resolvingname that only has records. To me it seems that nginx looks for system parameters to decide whether it needs to look for (ipv6) record or just fail at A record lookup.It will be good to know those parameter's and other

Nginx splitting one single request's into multiple requests to upstream. (version 1.13.3)

2017-09-26 Thread pankaj
d option like tcp_nodelay, tcp_nopush, rcvbuf,sndbuf etc.Also, following configurations is in place as well.proxy_request_buffering off;proxy_buffering off;proxy_http_version 1.1;fastcgi_buffering off;Please suggest what possibly can be tweaked here to m

how i can use third party library while building own nginx module

2016-07-21 Thread Pankaj Chaudhary
Hi, how i can use third party library while building own nginx module as i am using third party libraries. Thanks, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

error while building own nginx module

2016-07-20 Thread Pankaj Chaudhary
error while loading in nginx.conf file. nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_auth_module.so" failed (/usr/local/nginx/modules/ngx_http_auth_module.so: undefined symbol: ngx_http_auth_module Please let me know correct way to do. Thanks & Regards, Pa

Re: while building own nginx module error to find user defined header file

2016-07-20 Thread Pankaj Chaudhary
, Pankaj Chaudhary wrote: > Hi , > Thank you, > > after using this script also i am getting same error. > I have makefile which provide other header file path and third party lib > path. > I have structure like this > module_folder/ > 1.module.cpp > 2.config > 3.M

error nginx: [emerg] dlopen() "/usr/local/nginx/modules/ds_http_module.so" failed (/usr/local/nginx/modules/ds_http_module.so: undefined symbol: ds_http_module

2016-07-20 Thread Pankaj Chaudhary
this error. Regards, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: while building own nginx module error to find user defined header file

2016-07-19 Thread Pankaj Chaudhary
please let me know what i should do. On Mon, Jul 18, 2016 at 6:39 PM, Maxim Dounin wrote: > Hello! > > On Mon, Jul 18, 2016 at 12:28:34PM +0530, Pankaj Chaudhary wrote: > > > I have written my own nginx module and i have my user defined header > files > > but while

while building own nginx module error to find user defined header file

2016-07-17 Thread Pankaj Chaudhary
Hi All, I have written my own nginx module and i have my user defined header files but while building i am getting error header file not found. my module will act as a filter. Please help me. Regards, Pankaj ___ nginx mailing list nginx@nginx.org

how can i get nginx lib

2016-06-27 Thread Pankaj Chaudhary
___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

reading config during run time

2016-05-23 Thread Pankaj Chaudhary
Hi, In my module i want to read config values run time. is there method available in nginx which i can use. Please suggest. Regards, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: (52) Empty reply from server

2016-05-10 Thread Pankaj Chaudhary
d, May 11, 2016 at 2:17 AM, Francis Daly wrote: > On Mon, May 09, 2016 at 02:34:13PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > Its means nginx do not have any API as other server having to set header > > and get header ? very strange ... > > You are correct.

Re: (52) Empty reply from server

2016-05-09 Thread Pankaj Chaudhary
: > On Thursday 05 May 2016 10:27:46 Pankaj Chaudhary wrote: > > Hi, > > > > thank you! > > My module is basically for resource protection. > > I have already running my module on other servers also. > > My module follow below steps. > > -Generate cooki

Re: (52) Empty reply from server

2016-05-04 Thread Pankaj Chaudhary
get header. Apache have apr_table_get() to get value from header and apr_table_set() to set the value in header. Do we have similar APIs in nginx? How i can achieve same kind of behavior in nginx? Regards, Pankaj On Wed, May 4, 2016 at 7:16 PM, Valentin V. Bartenev wrote: > On Wednesday

Re: (52) Empty reply from server

2016-04-27 Thread Pankaj Chaudhary
Hi, Thank you, I got this point. But in my case i need to set cookie value in header later read from header the same value. Is any example which i can follow for my requirement, can you suggest please. Regards, Pankaj On Wed, Apr 27, 2016 at 9:08 PM, Valentin V. Bartenev wrote: > On Wednes

Re: (52) Empty reply from server

2016-04-27 Thread Pankaj Chaudhary
, h->lowcase_key, h->key.len); Best Regards, Pankaj On Tue, Apr 26, 2016 at 6:23 PM, Valentin V. Bartenev wrote: > On Tuesday 26 April 2016 16:52:22 Pankaj Chaudhary wrote: > > Hi Francis, > > > > thank you for your input! > > > > I have r

Re: (52) Empty reply from server

2016-04-26 Thread Pankaj Chaudhary
al->lowcase_key, test_val->key.len); } curl response:-Test_val was accepting "somevalue" HTTP/1.1 200 OK Server: nginx/1.9.12 Date: Tue, 26 Apr 2016 19:13:40 GMT Content-Type: text/plain Content-Length: 34 Connection: keep-alive Test_Val: Cookie Hello, This is Nginx test Module! O

Re: (52) Empty reply from server

2016-04-21 Thread Pankaj Chaudhary
uot; not getting . On Thu, Apr 21, 2016 at 1:08 AM, Francis Daly wrote: > On Wed, Apr 20, 2016 at 12:54:13PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > >>But your code snippet does not match exactly the types and return > values > > >>of that exam

Re: (52) Empty reply from server

2016-04-20 Thread Pankaj Chaudhary
text/plain Content-Length: 14 Connection: keep-alive cookie: thisitestvalue user_agent: 10.9 user get-rese: Cookie On Tue, Apr 19, 2016 at 11:12 PM, Francis Daly wrote: > On Tue, Apr 19, 2016 at 03:51:17PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > i am trying to sear

Re: (52) Empty reply from server

2016-04-19 Thread Pankaj Chaudhary
:05 AM, Francis Daly wrote: > On Mon, Apr 18, 2016 at 04:25:24PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > not able to read header value after setting... > > > > any help most welcome > > You have your nginx "hello world" module, yes? > &g

Re: (52) Empty reply from server

2016-04-18 Thread Pankaj Chaudhary
not able to read header value after setting... any help most welcome On Fri, Apr 15, 2016 at 1:17 PM, Pankaj Chaudhary wrote: > Hi Francis, > > thank you! > > i have checked Emillers guide but i am not able to use the same for my > problem. > > I have my product in c

Re: (52) Empty reply from server

2016-04-15 Thread Pankaj Chaudhary
header by calling apr_table_get(). I am achieving the same behavior apr_table_set() with ngx_list_push() call but not able to find like apr_table_get() in nginx. Reagrds, Pankaj On Fri, Apr 15, 2016 at 2:43 AM, Francis Daly wrote: > On Thu, Apr 14, 2016 at 11:36:52PM +0530, Pankaj Chaudh

Re: (52) Empty reply from server

2016-04-14 Thread Pankaj Chaudhary
Hi Francis, Thank you for your comments. Actually I have requirement to add value to header and then read same value like cookies values,URL. Is any API which I can use for the same. Please suggest. On 14 Apr 2016 22:25, "Francis Daly" wrote: > On Thu, Apr 14, 2016 at 03:34:40PM

(52) Empty reply from server

2016-04-14 Thread Pankaj Chaudhary
Hi All, i am trying to set value in header with the help of below code snippet . ngx_table_elt_t *h1; h1 = ngx_list_push(&r->headers_out.headers); h1->hash = 1; ngx_str_set(&h1->key, "http_user_agent"); ngx_str_set(&h1->value, "user_agent_value"); if i try to retrieve the same value then

reading cookie

2016-04-11 Thread Pankaj Chaudhary
Hi, My name is Pankaj and i am new to this list. I would like to know how i can set cookie value and get cookie value. Please let me know is any module already written to do this. Regards, Pankaj ___ nginx mailing list nginx@nginx.org http

cookie issue

2016-04-10 Thread Pankaj Chaudhary
Hi , This is Pankaj,I am trying to write a module which is capable to access header value and set header and reading cookie and setting cookie. if i refer apache module then found apr_table_get() and apr_table_set() APIs are available to get/set header/cookie values. I have tried to use

cookie issue

2016-04-10 Thread Pankaj Chaudhary
Hi, This is Pankaj,I am trying to write a module which is capable to access header value and set header and reading cookie and setting cookie. if i refer apache module then found apr_table_get() and apr_table_set() APIs are available to get/set header/cookie values. I have tried to use

Regarding development nginx module

2016-04-07 Thread Pankaj Chaudhary
Hi, This is Pankaj,I am trying to write a module which is capable to access header value and set header and reading cookie and setting cookie. if i refer apache module then found apr_table_get() and apr_table_set() APIs are available to get/set header/cookie values. I have tried to use

Regarding proxy_next_upstream parameter

2014-08-10 Thread Pankaj Kaushik
Hi, I am trying to do failover as per below configuration :- upstream backend { hash $key2 consistent; server 10.0.0.22:8080; server 10.0.0.23:8080; server 10.0.0.24:8080; server 10.0.0.25:8080; server

Regarding support of server backup parameter

2014-08-10 Thread Pankaj Kaushik
Hi, I am getting below error while loading nginx configuration file. 2014/08/10 10:06:33 [emerg] 816#0: invalid parameter "backup" in /etc/nginx/nginx.conf:39 Below is the configuration file :- upstream backend { hash $key2 consistent; server 10.0.0.22:8080;

Re: Regarding ERROR: XmlParseFailure

2014-08-09 Thread Pankaj Kaushik
Hey Francis, > Your request is for "/". The only location block you have is a prefix > match for the four-character string "$uri", which does not match > your request, so the request is processed by the default server-level > configuration. > > I have understanding that $uri will be changed to a

Re: Regarding ERROR: XmlParseFailure

2014-08-09 Thread Pankaj Kaushik
65.60.72.19:90" 2014/08/09 06:36:19 [info] 330#0: *3 client 14.102.112.84 closed keepalive connection Why it is happening? Thanks, Panky On Sat, Aug 9, 2014 at 6:44 PM, Pankaj Kaushik wrote: > Hi, > > I am getting this error : *ERROR: XmlParseFailure* > > Can anybody please le

Regarding ERROR: XmlParseFailure

2014-08-09 Thread Pankaj Kaushik
Hi, I am getting this error : ERROR: XmlParseFailure Can anybody please let me know what is the issue? Below is my nginx.conf. map $uri $key2 { ~^(?/[^/]+)/ $key; default ""; } upstream backend { hash $key2 consistent;

Re: inlining

2014-02-14 Thread Pankaj Mehta
These should be covered during the link time optimisations. Look here for gcc: http://gcc.gnu.org/wiki/LinkTimeOptimization And here for Visual Studio : http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx Cheers Pankaj On 14 February 2014 23:24, atarob wrote: > > On Friday, Febru

Re: SSL behaviour with multiple server blocks for same port

2014-01-24 Thread Pankaj Mehta
Thanks Maxim, very helpful. Pankaj On 23 January 2014 11:49, Maxim Dounin wrote: > Hello! > > On Thu, Jan 23, 2014 at 11:17:42AM +0000, Pankaj Mehta wrote: > > > Hi, > > > > I am struggling to get any documented reference for my problem in nginx > > docs.

SSL behaviour with multiple server blocks for same port

2014-01-23 Thread Pankaj Mehta
Is there a way in nginx to dump the active configs for a port? Thanks Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx