502 errors and request_time

2015-11-27 Thread Shi
Hi: I've found 2 kinds of 502 errors in my server: connection reset by peer, it happens as request_time reach to 10s. connection timeout, it happens as request_time reach to 3s. Server is: centos , kernel(2.6.32) php5.2 php-fpm nginx 1.6.3. access logs outputs: [28/Nov/2015:14:41:08 +0800]

Re: Is it possible to get headers from X-Accel-Redirect reply

2015-11-27 Thread mayamatakeshi
On Sat, Nov 28, 2015 at 9:17 AM, mayamatakeshi wrote: > Hello, my upstream server replies with this: > > HTTP/1.1 200 OK. > Server: test. > Date: Sat, 28 Nov 2015 00:05:55 GMT. > Content-Type: application/json. > Content-Length: 0. > Connection: close. > X-ExtraInfo: domain_name=test1.com > ;doma

Is it possible to get headers from X-Accel-Redirect reply

2015-11-27 Thread mayamatakeshi
Hello, my upstream server replies with this: HTTP/1.1 200 OK. Server: test. Date: Sat, 28 Nov 2015 00:05:55 GMT. Content-Type: application/json. Content-Length: 0. Connection: close. X-ExtraInfo: domain_name=test1.com ;domain_id=1000;user_name=user1;user_id=10001001. X-Accel-Redirect: /internal_re

Re: nginx SSL_do_handshake() failed

2015-11-27 Thread Maxim Dounin
Hello! On Fri, Nov 27, 2015 at 05:41:23PM +0100, Nicholas Wieland wrote: > > On 27 Nov 2015, at 17:14, Maxim Dounin wrote: [...] > > Make sure to properly configure certificate chains, see > > http://nginx.org/en/docs/http/configuring_https_servers.html#chains > > for details. > > I’m not en

Re: nginx SSL_do_handshake() failed

2015-11-27 Thread Nicholas Wieland
> On 27 Nov 2015, at 17:14, Maxim Dounin wrote: > > Hello! > > On Fri, Nov 27, 2015 at 04:54:29PM +0100, Nicholas Wieland wrote: > >> it's the first time I configure an SSL certificate on my development machine >> (I'm no sysadmin - I need SSL to work with facebook). I decided to go with >>

Re: nginx SSL_do_handshake() failed

2015-11-27 Thread Maxim Dounin
Hello! On Fri, Nov 27, 2015 at 04:54:29PM +0100, Nicholas Wieland wrote: > it's the first time I configure an SSL certificate on my development machine > (I'm no sysadmin - I need SSL to work with facebook). I decided to go with > ngingx proxying a ruby sinatra application, nothing fancy. > >

nginx SSL_do_handshake() failed

2015-11-27 Thread Nicholas Wieland
it's the first time I configure an SSL certificate on my development machine (I'm no sysadmin - I need SSL to work with facebook). I decided to go with ngingx proxying a ruby sinatra application, nothing fancy. This is the error I get when Facebook tries to connect to my HTTP server. AFAIK ngin

Re: proxy_store skip not 200

2015-11-27 Thread Maxim Dounin
Hello! On Thu, Nov 26, 2015 at 09:03:19PM -0500, vps4 wrote: > i setup proxy_store works fine, but has some problem > when the backend response 404 or other result, proxy_store still save them > for example: > > backend 1.jpg response 404 and html result, proxy_store will store it in > disk > ho

Re: Nginx Reverse proxy + RD Gateway Auth Problem

2015-11-27 Thread itpp2012
frederico Wrote: --- > Should I replace proxy_pass to stream? If your config is a http {} one then yes, simple example https://forum.nginx.org/read.php?2,263084,263099#msg-263099 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,254095,

Re: Nginx Reverse proxy + RD Gateway Auth Problem

2015-11-27 Thread frederico
Hi, sorry, but I don't understand what you mean with stream {}, my nginx config for the RD Gateway is the following: server {listen *:6080; listen *:6443 ssl; server_name ~^rdg..*$; include ssl_rdg.conf; location / {proxy_pass https://s2012-rdg; include proxy_defaults.conf;}} Should

Re: Nginx Reverse proxy + RD Gateway Auth Problem

2015-11-27 Thread itpp2012
frederico Wrote: --- > Hi timbo, > > I am also trying to connect to a Remote Desktop Gateway through nginx. > Did you get it work? Have you tried this using stream {} ? which works fine for vpn and other streaming services. Posted at Nginx Foru

Re: Nginx Reverse proxy + RD Gateway Auth Problem

2015-11-27 Thread frederico
Hi timbo, I am also trying to connect to a Remote Desktop Gateway through nginx. Did you get it work? Regards, Fred Posted at Nginx Forum: https://forum.nginx.org/read.php?2,254095,263116#msg-263116 ___ nginx mailing list nginx@nginx.org http://mailm