Re: Dropped https client connection doesn't drop backend proxy_pass connection

2013-03-18 Thread Robert Mueller
> > When an https client drops it's connection, the upstream http proxy > > connection is not dropped. If nginx can't detect an https client > > disconnect properly, that must mean it's leaking connection information > > internally doesn't it? > > No. It just can't say if a connection was closed

Need to proxypass to different servers.

2013-03-18 Thread Geo P.C.
We have 3 servers with Nginx as webserver. The setup is as follows: Server1 : Proxy server Server2 : App Server1 Server3 : App Server 2 In both App servers port 80 is accessed only by Proxy server. We need to setup in such a way that while accessing geotest.com it will go to proxy server

Re: securing access to a folder - 404 error

2013-03-18 Thread mottwsc
I was able to get partway through the problem with some help. The basic problem was that I had been missing a root directive in one of the location blocks. I was advised to (and did) move the root statement up to the server block and comment it out from any sub-blocks. I have found that this now

How to change cookie header in a filter?

2013-03-18 Thread Cool
Hi, What's the right way to change incoming cookie header so that upstream can get it just like it's from user's original request header? For example, user's browser sends: Cookie: PHPSESSID=34406134e25e5e07727f5de6d5ff7aa3; __utmc=78548747 and I want it to be: Cookie: PHPSESSID=34406134e25e5e0

Re: securing access to a folder - 404 error

2013-03-18 Thread Francis Daly
On Sun, Mar 10, 2013 at 04:07:23PM -0400, mottwsc wrote: Hi there, > I'm trying to secure a directory on a CentOS 6.3 64 server running NGINX > 1.2.7. I think I've set this up correctly, but it keeps giving me a 404 Not > Found error when I try to access a file in that folder in the browser usin

Re: Strange $upstream_response_time latency spikes with reverse proxy

2013-03-18 Thread Jay Oster
Hi Maxim, On Sun, Mar 17, 2013 at 4:42 AM, Maxim Dounin wrote: > Hello! > > On "these hosts"? Note that listen queue aka backlog size is > configured in _applications_ which call listen(). At a host level > you may only configure somaxconn, which is maximum allowed listen > queue size (but an

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 08:53:10PM +0100, Yunior Miguel A. wrote: Hi there, I see that I was wrong in assuming how thin works. > thin configuration: > servers: 1 > socket: /tmp/thin.sock It looks like the *actual* file name used for the socket can add a ".integer" before the final "." in the c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread basti
thin => socket: /tmp/thin.sock nginx => server unix:/tmp/thin.0.sock; would be the problem i think. Am 18.03.2013 20:53, schrieb Yunior Miguel A.: Thans for all. The end configuration: thin configuration: chdir: /var/www/redmine/ environment: production address: 127.0.0.1 port: 3000 timeout:

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
Thans for all. The end configuration: thin configuration: chdir: /var/www/redmine/ environment: production address: 127.0.0.1 port: 3000 timeout: 30 log: /var/log/thin/gespro.log pid: tmp/pids/thin.pid max_conns: 1024 max_persistent_conns: 512 require: [] wait: 30 servers: 1 daemonize: true socke

Surge 2013 CFP Open

2013-03-18 Thread Katherine Jeschke
The Surge 2013 CFP is open. For details or to submit a paper, please visit http://surge.omniti.com/2013 -- Katherine Jeschke Director of Marketing and Creative Services OmniTI Computer Consulting, Inc. 11830 West Market Place, Suite F Fulton, MD 20759 O: 240-646-0770, 222 F: 301-497-2001 C: 443/6

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 05:13:12PM +0100, Yunior Miguel A. wrote: Hi there, > I am put the same port and change server unix:/tmp/thin.sock; > > and the log is the same. I'm not sure what exact configuration and log you are looking at in this test, but if your nginx.conf says "unix:/tmp/thin.so

custom error page with errors in it

2013-03-18 Thread RedFoxy
Hi all! I does some rules for various web errors, that rules shows a custom error page: error_page 500 502 503 504 /50x.html; location = /50x.html { root/etc/nginx/_conf/error-page; } error_page 404 /404.html; location = /404.html { root/etc/nginx/_co

rewrite for missing images

2013-03-18 Thread RedFoxy
Hello! I want do a specific rewrite for missing image, I mean that I've a 404 page for all other missing pages, now I want do a rewrite that shows an image when is an image that is missing. is that possible? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237502,237502#msg-237502 _

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
Whn I am go /tmp/thin.0.sock that file exist. Sometime when i am reset the thin read thin: /var/lib/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead. I am put the same port and c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Maxim Dounin
Hello! On Mon, Mar 18, 2013 at 04:12:58PM +0100, Yunior Miguel A. wrote: > I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am > install redmine, when I try to access the page of redmine gives me the > following error: 502 Bad Gateway. In Nginx log reads: > 2013/03/18 10:45:09 [c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 04:12:58PM +0100, Yunior Miguel A. wrote: Hi there, > I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am > install redmine, when I try to access the page of redmine gives me the > following error: 502 Bad Gateway. In Nginx log reads: > 2013/03/18 10:45:09

502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am install redmine, when I try to access the page of redmine gives me the following error: 502 Bad Gateway. In Nginx log reads: 2013/03/18 10:45:09 [crit] 13886#0: *11 connect() to unix:/tmp/thin.0.sock failed (2: No such file or dir

Re: Reverse Proxy Data Diode

2013-03-18 Thread WBrown
From: "Camayoc" > I'd argue the commercial solutions are value for money, given the > complexities. Not to mention most organizations that would need such a device like having someone to hold accountable (usually via lawsuit) when it fails. Confidentiality Notice: This electronic message a

Re: upstream keepalive with upstream hash

2013-03-18 Thread beaufour
Maxim Dounin Wrote: > > I'm suspecting that the upstream hash module "takes over" the > upstream > > handling, and thus ignores the 'keepalive' keyword, but I'm randomly > > guessing. > > Quoting http://nginx.org/r/keepalive: > > : When using load balancer methods other than the default > : roun

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

2013-03-18 Thread gadh
i changed to pcalloc as you told me and the crash seems to be solved !! thanks alot Gad Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237362,237488#msg-237488 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/

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

2013-03-18 Thread gadh
> Note though, that by changing headers_in structure you are > responsible for it's consistency. It's usually much better idea > to use upstream functionality to create needed request to an > upstream instead (proxy_set_body, proxy_pass_headers and so on). > but can i wait for the upstream to

Re: Simple question about proxy cache

2013-03-18 Thread John Moore
On 17/03/13 23:08, Maxim Dounin wrote: > Hello! > > On Sun, Mar 17, 2013 at 08:08:39PM +, John Moore wrote: > >> I've used nginx as a reverse proxy server for a long while but I've not >> tried out the proxy cache until today, and I have to say I'm a little >> bit confused by what I'm seeing in

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

2013-03-18 Thread Maxim Dounin
Hello! On Mon, Mar 18, 2013 at 01:40:24AM -0400, gadh wrote: > thanks Maxim ! i very appreciate your help on this. > about the temp file - i protect from a response to be written to a file by > knowing the max size that can be sent by the server and enlarging the proxy > buffers accordingly. You

Find Duplicate Files and Free Up Disk Space

2013-03-18 Thread shajalalmia2
I faced same problem my computers many files is Duplicate. so my need help .please tell me your idea Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237481,237481#msg-237481 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mail