Re: header handling

2015-08-17 Thread Frank Liu
Hi Maxim, Thanks for you comment! Do you have any other approaches/suggestions? I use nginx as a proxy/load-balancer. The request will be processed by the upstream java servers. I assume my change won't actually modify the actual header, so upstream will still get the original header and can disti

$upstream_status may show 502 even if upstream replied with 503

2015-08-17 Thread Anton Ivanov
My nginx.conf: http { upstream test { server 127.0.0.1:8081 max_fails=0; server 127.0.0.1:8082 max_fails=0; } server { listen 8080; location / { proxy_pass http://test; } proxy_next_upstream http_503; proxy_intercept_errors on; } log_format main '$u

Re: Upgrading plain HTTP to HTTPS using STARTTLS

2015-08-17 Thread lbc
Dear Maxim, thank you very much for the speedy answer! Glad to here that the websocket approach could help. Will try this, since Nginx just rocks. :-) Have a nice day and best wishes, Stefan (lbc) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261044,261062#msg-261062 _

Re: header handling

2015-08-17 Thread Maxim Dounin
Hello! On Sat, Aug 15, 2015 at 12:15:47AM -0700, Frank Liu wrote: > I made the below patch and can now use $upstream_http_x_header for > logformat to capture the header X.header in the access log. Does anybody > see any issues with the patch? > > --- src/http/ngx_http_variables.c.orig 2015-08-15

Re: Upgrading plain HTTP to HTTPS using STARTTLS

2015-08-17 Thread Maxim Dounin
Hello! On Sun, Aug 16, 2015 at 10:29:56AM -0400, lbc wrote: > Hello, > > I consider switching from Apache to Nginx (or using it as a reverse proxy to > the Apache), but need to upgrade plain HTTP connections to HTTPS using the > scheme defined in RFC 2817. Reason for this is a client software ru

Re: Static Content on Different Server Isn't Loaded??

2015-08-17 Thread smsmaddy1981
Hi Francis, There were some HW upgrades because of which I was halted to make anymore trials. Today, I am revoked the access to continue my investigation and with your recent suggestion/tip...I am able to access the static content. Cheers and very kind for your quick support. Best regards, smsm