Re: HUP signal to nginx doesn't work Ubuntu14

2015-06-04 Thread Kunal Pariani
signal to nginx doesn't work Ubuntu14 Hello! On Wed, Jun 03, 2015 at 05:06:57PM -0500, Kunal Pariani wrote: > Hello, > Am seeing an issue while sending HUP signal to nginx (for config reload) on > Ubuntu14. It just kills the master process & doesn't start the new worker

HUP signal to nginx doesn't work Ubuntu14

2015-06-03 Thread Kunal Pariani
Hello, Am seeing an issue while sending HUP signal to nginx (for config reload) on Ubuntu14. It just kills the master process & doesn't start the new worker processes. The same works just fine on CentOS 6.6 64-bit $ ps -eaf | grep nginx zimbra 10860 1 0 16:05 ? 00:00:00 nginx: master process

Re: nginx page caching not working for responses with valid (rfc 1123 compliant) Expires header

2015-03-10 Thread Kunal Pariani
- Original Message - From: "Valentin V. Bartenev" To: nginx@nginx.org Sent: Tuesday, March 10, 2015 1:10:09 PM Subject: Re: nginx page caching not working for responses with valid (rfc 1123 compliant) Expires header On Tuesday 10 March 2015 14:42:41 Kunal Pariani wrote: >

nginx page caching not working for responses with valid (rfc 1123 compliant) Expires header

2015-03-10 Thread Kunal Pariani
Hello, I am on nginx-1.7.1 & trying to use nginx's page caching feature but run into an issue for responses with a valid 'Expires' header which seem to be in the correct rfc 1123 compliant format. Nginx somehow doesn't like it & hence doesn't cache such responses. Is this a bug ?

Re: $upstream_addr containing the same ip twice

2015-02-19 Thread Kunal Pariani
e same ip twice Hello! On Thu, Feb 19, 2015 at 08:49:33AM -0800, Kunal Pariani wrote: > I have just one server configured with a single Ip address but I still see > this. The example case mentioned isn't the only case when this can happen legitimately. -- Max

Re: $upstream_addr containing the same ip twice

2015-02-19 Thread Kunal Pariani
I have just one server configured with a single Ip address but I still see this. Thanks -Kunal On Feb 19, 2015 5:05 AM, "Maxim Dounin" wrote: > Hello! > > On Wed, Feb 18, 2015 at 09:03:47PM -0600, Kunal Pariani wrote: > > > Hello, > > I have just 1 backend se

$upstream_addr containing the same ip twice

2015-02-18 Thread Kunal Pariani
Hello, I have just 1 backend server being reverse-proxied through nginx. The access log lists this one request for which the $upstream_addr has the same ip:port twice. Is this a bug ? :::10.255.255.248:51947 - - [18/Feb/2015:19:52:43 -0600] "GET / HTTP/1.1" 302 454 "-" "Mozilla/5.0 (Macin

Re: monitor upstream IP addr changes without using nginx's resolver

2015-01-16 Thread Kunal Pariani
Sorry am new to Lua but can you plz explain how this upstream status & control will help with this issue. How can i query for the upstream ip after every certain time interval and reconfigure nginx if there's a change detected ? The reason for not using nginx's resolver here is that i have to pa

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-12 Thread Kunal Pariani
Thanks Yichun Zhang.. - Original Message - From: "Yichun Zhang (agentzh)" To: nginx@nginx.org Sent: Monday, January 12, 2015 2:19:08 PM Subject: Re: resolver directive doesn't fallback to the system DNS resolver Hello! On Mon, Jan 12, 2015 at 1:48 PM, Kunal Pariani wr

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-12 Thread Kunal Pariani
Is there already a patch for this ? I am not completely sure of how to make the nginx resolver (in ngx_resolver.c) fallback to libresolv automatically and if this not trivial enough, i just might read the resolvers from /etc/resolv.conf and provide it to the 'resolver' directive. Any suggestions

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-07 Thread Kunal Pariani
ere a way to achieve this ? Thanks -Kunal From: "Francis Daly" To: nginx@nginx.org Sent: Wednesday, January 7, 2015 3:14:17 PM Subject: Re: resolver directive doesn't fallback to the system DNS resolver On Mon, Jan 05, 2015 at 05:04:52PM -0600, Kunal Pariani wrote: Hi the

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-07 Thread Kunal Pariani
Ping.. Thanks -Kunal From: "Kunal Pariani" To: nginx@nginx.org Sent: Monday, January 5, 2015 3:04:52 PM Subject: resolver directive doesn't fallback to the system DNS resolver Hello, I am looking at how to use nginx's resolver directive (http://ng

resolver directive doesn't fallback to the system DNS resolver

2015-01-05 Thread Kunal Pariani
Hello, I am looking at how to use nginx's resolver directive (http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) to address this one issue i am facing. I have a host for which there is already an entry in the system DNS resolver (verified using nslookup/dig) but when i specify th

Re: proxy_pass to different upstreams based on a cookie in the http request header

2014-06-12 Thread Kunal Pariani
Thanks for your answer. Worked great for me.. On Wed, Jun 11, 2014 at 10:10 AM, Francis Daly wrote: > On Wed, Jun 11, 2014 at 12:46:41AM -0700, Kunal Pariani wrote: > > Hi there, > > > Am wondering if there is a way to proxy (i.e proxy_pass inside location > > direct

proxy_pass to different upstreams based on a cookie in the http request header

2014-06-11 Thread Kunal Pariani
Hello, Am wondering if there is a way to proxy (i.e proxy_pass inside location directive) to different set of upstreams based on whether a particular cookie is present or not in a http request header. Thanks -Kunal ___ nginx mailing list nginx@nginx.org

Re: debug logs not getting generated

2014-03-30 Thread Kunal Pariani
Never mind. Got it working. Had a script which was overwriting the loglevel value in the conf file after restarting nginx. Thanks for the help. On Sat, Mar 29, 2014 at 3:36 PM, Kunal Pariani wrote: > 3) Make sure you've restarted nginx (or upgraded running binary). > > 4) Make s

Re: debug logs not getting generated

2014-03-29 Thread Kunal Pariani
d that the config file (conf/nginx/nginx.conf.main) i am changing loses the changes after restarting nginx. Not sure why this should happen as config files need to be persistent across reloads. On Sat, Mar 29, 2014 at 12:24 AM, Maxim Dounin wrote: > Hello! > > On Fri, Mar 28, 2014 at 06:0

debug logs not getting generated

2014-03-28 Thread Kunal Pariani
Hello, I followed this http://nginx.org/en/docs/debugging_log.html. Have nginx built with --with-debug and set the the error_log in the following 2 files (nginx.conf.main & inside http { } in nginx.conf.web). But still i don't see debug level logging getting generated in the files specified. error

Re: Build nginx on Mac OS X mavericks

2014-03-27 Thread Kunal Pariani
rthington.com/ > http://twitter.com/kworthington > > > On Thu, Mar 27, 2014 at 7:17 AM, Maxim Dounin wrote: > >> Hello! >> >> On Wed, Mar 26, 2014 at 06:33:56PM -0700, Kunal Pariani wrote: >> >> > Hello, >> > Has anyone tried building nginx code

Build nginx on Mac OS X mavericks

2014-03-26 Thread Kunal Pariani
Hello, Has anyone tried building nginx code on Mac ? I get the following error while building. Have installed pcre and other needed libraries *src/mail/ngx_mail_handler.c:1152:30: **error: **use of undeclared identifier 'sasl_callback_ft'; did you mean* * 'sasl_callback_t'?* callbac

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-24 Thread Kunal Pariani
Never mind there's nothing wrong with nginx here. It was one of the response headers sent by an upstream server (mainly Content-Description: 2013923 10H56M56S633_PV.doc�) including this non-ascii char '?' which the nginx didn't like and hence flagged it saying that it received an invalid header. T

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-24 Thread Kunal Pariani
hmm..thanks Lukas. So its my backend server only which is causing this issue. Thanks -Kunal On Mon, Mar 24, 2014 at 12:43 PM, Lukas Tribus wrote: > FYI, nginx has not problems passing filenames with spaces along: > > > # curl -I http://direct-apache/content-disposition-header.php > HTTP/1.1 20

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-24 Thread Kunal Pariani
I downloaded another file and the Content-Disposition header lists the filename with space under quotes correctly "zcs error.docx" thereby proving that its nginx which is not parsing it correctly. Correct me if i am wrong. 1. Cache-Control: no-store, no-cache 2. Connection: keep-alive

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-24 Thread Kunal Pariani
I used the web browser but didn't see this Content-disposition header in the response. Only saw these response headers. 1. Response Headersview source 1. Connection: keep-alive 2. Content-Length: 1159 3. Content-Type: text/html 4. Date: Mon, 24 M

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-23 Thread Kunal Pariani
What debugs should i enable & how to see these response headers ? I do see this error though. 2014/03/03 14:04:32 [error] 11259#0: *6 upstream sent invalid header while reading response header from upstream, client: 127.0.0.1, server: xxx.default, request: "GET /service/home/~/?auth=co&loc=en_GB&i

nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-23 Thread Kunal Pariani
Hello, I have nginx set as a reverse proxy for a mail server and it throws this 502 (invalid header) error while trying to fetch a file with a space in the filename. Any clues on where is this bug in the nginx code ? I searched on the net and found this one forum but it points to some issue in the