You are not logged in.

#1 2014-12-19 15:42:55

Koven
Member
Registered: 2006-06-13
Posts: 154

nginx error with proxy reverse

Hi

I've installed nginx to protect a weblogic server, port 7001. I've installed a SSL certificate in nginx so any comunication from outside is encrypted. No encryption in appserver configured.

I'm getting an error, I'm about to see login page in my browser but there's an error, this one:

2014/12/19 11:28:02 [info] 11929#0: *21 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:443

this is my nginx.conf related to this proxy reverse

    server {
#        listen       80;
	listen 443 ssl;
        #server_name  reverse.example.com;
        server_name  localhost;
#	server_tokens	off;

	ssl_certificate cert.crt;
	ssl_certificate_key	cert.key;

	ssl_session_cache shared:SSL:1m;
	ssl_session_timeout 5m;
	ssl_ciphers	HIGH:!aNULL:!MD5;
	ssl_prefer_server_ciphers	on;

       location / {
           proxy_pass http://appserver.example.com:7001/app1/;
           proxy_set_header        X-Real-IP       $remote_addr;
           proxy_set_header        host            $host;
           proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
	   proxy_redirect http:// https://;  
	   rewrite ^/app1/(.*)$ /$1 last;
       }
    }

It's not a problem with SSL because when I try with port 80 I see the same error. Any hint will be appreciated.

Thanks!!

Offline

Board footer

Powered by FluxBB