Dropped https client connection doesn't drop backend proxy_pass connection

2013-03-14 Thread Robert Mueller
Hi I'm trying to setup nginx to proxy a server sent events connection (http://dev.w3.org/html5/eventsource/) to a backend server. The approach is the browser connects to a particular path, which then checks the cookies to see the connection is authorised, and then returns an X-Accel-Redirect head

How to investigate upstream timed out issues?

2013-03-14 Thread michael.heuberger
Hello guys In my nginx version 1.3.14 I'm having lots of upstream timeouts like these and wonder what's the correct, professional approach is, to solve these: example: 762#0: *113 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 58.28.152.233, s

nginx_upload_progress

2013-03-14 Thread jaychris
I'm trying to compile in the nginx_upload_progress module into an RPM. I'm using the SPEC file provided with v1.2.7 from the Nginx repos. I downloaded the upload_progress module, opened up the source tar archive, copied the module to nginx-1.2.7/nginx-upload-progress-module, and added this line t

Strange $upstream_response_time latency spikes with reverse proxy

2013-03-14 Thread Jay Oster
Hi list! I'm trying to debug an interesting problem where we randomly get a "high latency" response time from our upstream servers. It appears to occur in about 1.5% of all requests. Here's a description of the tests I've been running to isolate the problem within nginx: I'm using an endpoint on

Re: The service is not available. Please try again later.

2013-03-14 Thread Reddirt
I got past that error and now the nginx error log has this: 2013/03/14 14:22:10 [error] 1537#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.20.3, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/";, host: "ndeavor.ameipro.com" 2

Re: The service is not available. Please try again later.

2013-03-14 Thread Reddirt
This is my nginx.conf file. Does it look OK? https://dl.dropbox.com/u/35302780/nginx.conf Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237379,237381#msg-237381 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listin

The service is not available. Please try again later.

2013-03-14 Thread Reddirt
I'm trying to get a Bitnami Rails running with Nginx and Thin. I've got Thin servers running on: bitnami@linux:/opt/bitnami$ thin -C projects/ndeavor/current/config/thin.yml start Starting server on 127.0.0.1:3000 ... Starting server on 127.0.0.1:3001 ... Starting server on 127.0.0.1:3002 ...

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread Reddirt
OK - we can close this thread. But, I'm going to start a new one because I still can't get to my Rails app. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237358,237377#msg-237377 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.o

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread Reddirt
My Rails app has this in production.rb:config.serve_static_assets = false When I run Thin by itself, I have to make that true. I thought with Nginx it would stay false. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237358,237374#msg-237374 ___

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread Reddirt
I restarted. Now I'm getting the website without the CSS. I thought Nginx would provide the static webpages including CSS. How can I tell if Nginx is running properly? Sorry - This is my first time trying this. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237358,237373#msg-237373

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread Reddirt
It looks like Bitnami expects the Rails app to be in url/appname. So, I just removed the /ndeavor from the thin.yml and from nginx.conf. This is what my thin.yml looks like now: https://dl.dropbox.com/u/35302780/thin.yml And this is my nginx.conf: https://dl.dropbox.com/u/35302780/nginx.conf I

Re: nginx + my module crashes only when ignore client abort = on

2013-03-14 Thread Maxim Dounin
Hello! On Thu, Mar 14, 2013 at 12:46:43PM -0400, gadh wrote: > thanks > after i get the subrequest response in a handler function i registered, what > can i do in order to tell the ngin core the subrequest had finished ? in my > case i do only these actions: > > ngx_http_core_run_phases(r->mai

Re: nginx + my module crashes only when ignore client abort = on

2013-03-14 Thread gadh
thanks after i get the subrequest response in a handler function i registered, what can i do in order to tell the ngin core the subrequest had finished ? in my case i do only these actions: ngx_http_core_run_phases(r->main); return NGX_OK; is this ok ? BTW, its not a case of a client body, i

Re: nginx + my module crashes only when ignore client abort = on

2013-03-14 Thread Maxim Dounin
Hello! On Thu, Mar 14, 2013 at 11:36:58AM -0400, gadh wrote: > i use nginx ver 1.2.5 (also tried 1.2.7) with my module that sends > subrequest to an upstream, waits untill response get back, then goes to > backend upstream and fetch the regular web page from it. > when i add to nginx conf "proxy_

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread Wolfsrudel
I don't think that you can use a path behind the server. The Upstream server is a server name itself (with port), not with something like "/something" at the end. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237358,237364#msg-237364 ___ ngi

Re: nginx + my module crashes only when ignore client abort = on

2013-03-14 Thread gadh
i attache here my "debug_http" log - note that "http finalize request" is called twice (i think that one of them nulls the connection so nulls its log too), and thats NOT happening when NOT using proxy_ignore_client_abort: btw: i use proxy http version 1.1, if it helps ---

nginx + my module crashes only when ignore client abort = on

2013-03-14 Thread gadh
i use nginx ver 1.2.5 (also tried 1.2.7) with my module that sends subrequest to an upstream, waits untill response get back, then goes to backend upstream and fetch the regular web page from it. when i add to nginx conf "proxy_ignore_client_abort on;", nginx crash with signal 11 (seg fault) when i

Re: nginx: [emerg] invalid host in upstream

2013-03-14 Thread WBrown
From: "Reddirt" > bitnami@linux:/opt/bitnami$ sudo ./ctlscript.sh start nginx > nginx: [emerg] invalid host in upstream "127.0.0.1:3000/ndeavor" in > /opt/bitnami/nginx/conf/vhosts/ndeavor.conf:2 What is your upstream section of the configuration file? Do you have the "/ndeavor" as pa

nginx: [emerg] invalid host in upstream

2013-03-14 Thread Reddirt
I'm trying to run a Rails app using Nginx with 5 Thin servers. I created the thin.yml file and when I run the start command, I get: bitnami@linux:/opt/bitnami/projects/ndeavor/current/config$ thin -C thin.yml start Starting server on 127.0.0.1:3000 ... Starting server on 127.0.0.1:3001 ... Sta

Re: Is it possible that nginx will not buffer the client body?

2013-03-14 Thread Pasi Kärkkäinen
On Thu, Feb 28, 2013 at 10:12:47PM +0400, Maxim Dounin wrote: > Hello! > Hello, > On Thu, Feb 28, 2013 at 05:36:23PM +, André Cruz wrote: > > > I'm also very interested in being able to configure nginx to NOT > > proxy the entire request. > > > > Regarding this patch, > > https://github.

Re: NginX and Magento very strange problem (?!)

2013-03-14 Thread enlighteneditdevelopment
Our magento experts resolve complicated issues on ecommerce websites by building custom extensions and modules, to meet your custom requirements or for a no obligation free quote get in touch with us. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236869,237353#msg-237353 _

Re: [Q] Security issues with Nginx

2013-03-14 Thread Joe M
OK, great Any other security issues or misconfiguration I should know about? Thanks Joe Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237336,237345#msg-237345 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

Re: Is it possible that nginx will not buffer the client body?

2013-03-14 Thread Pasi Kärkkäinen
On Thu, Mar 07, 2013 at 07:48:37PM +0200, Pasi Kärkkäinen wrote: > On Thu, Mar 07, 2013 at 12:25:43PM -0500, double wrote: > > > I keep getting the "upstream sent invalid header while reading response > > header from upstream" > > > error when using the no_buffer patch.. > > > > The patch does not

Re: [Q] Security issues with Nginx

2013-03-14 Thread Maxim Dounin
Hello! On Thu, Mar 14, 2013 at 03:43:17AM -0400, Joe M wrote: > Hey all > > Im new to Nginx and wanted to know if any of you familiar with any Known > security issues in Nginx (for example: > http://cnedelcu.blogspot.co.il/2010/05/nginx-php-via-fastcgi-important.html) This was discussed here on

[Q] Security issues with Nginx

2013-03-14 Thread Joe M
Hey all Im new to Nginx and wanted to know if any of you familiar with any Known security issues in Nginx (for example: http://cnedelcu.blogspot.co.il/2010/05/nginx-php-via-fastcgi-important.html) Thanks Joe Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237336,237336#msg-237336