NTLM sharepoint when use nginx reverse proxy

sonpg nginx-forum at forum.nginx.org
Sun Feb 25 09:40:36 UTC 2018


i try and it work but have new issue. Some site i need redirect from port 80
to 443 and it use same port 80 with sharepoint site
 My code is:


events {
    worker_connections  1024;
}
stream {
    upstream ecm.test.com {
	hash $remote_addr consistent;
    server ecm.test.com:81 weight=5;
    }
    server {
        listen 81;        #Line 27
        	
        proxy_connect_timeout 1s;
        proxy_timeout 3s;
        proxy_pass ecm.test.com;
    }
	}
	
http {
server_tokens off;
proxy_buffering           off;
expires 12h;
proxy_redirect     off;
	
# Redirect http://test.com -> https://www.test.com
server {
listen 			80;
server_name 		www.test.com;
#rewrite ^(.*) https://www.test.com permanent;
return 301 https://$host$request_uri;
	}

# Redirect http://www.test.com -> https://www.test.com
server {
listen 			80;
server_name 		test.com;
rewrite ^(.*) https://www.test.com permanent;
#return 301 https://$host$request_uri;
	}	

### Reverse Proxy for WEB02
server {
listen 			443 ssl;
server_name 		www.test.com;
ssl              on;
### SSL cert files ###
       ssl_certificate      /etc/nginx/ssl/cert.pem;
       ssl_certificate_key  /etc/nginx/ssl/cert.key;

    	### ssl_ciphers          HIGH:!aNULL:!MD5;
		#ssl_ciphers RC4:HIGH:!aNULL:!MD5;
	    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
		ssl_prefer_server_ciphers on; 
		ssl_session_cache shared:SSL:10m;
		ssl_ciphers
"EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";

   	location / {
	proxy_set_header        X-Real-IP       $remote_addr;
	proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
     	proxy_pass 		https://web02.test.com;
	proxy_set_header 		host test.com;
		}
}	
}

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278737,278749#msg-278749



More information about the nginx mailing list