NC支持tls1.2

WAS

服务器双网卡 172.19.74.12 192.168.1.1
nginx -ihs-was (IHS与nginx 必须不同ip 相同端口)

IHS的httpdconf中所有的带端口的地方均改为内网IP:PORT

Listen 172.19.74.12:80
ServerName 172.19.74.12:80
Listen 172.19.74.12:443
<VirtualHost 172.19.74.12:443>

nginx.conf

worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  3600;
    client_header_timeout 3600;
    client_body_timeout 3600;
    client_max_body_size 1024m; 
    client_body_buffer_size 8m;
    underscores_in_headers on; 

    server {
        listen 80;#也可以80直接由ihs暴露出去()
        server_name  www.abcd.com;
        location / {
            send_timeout 3600;
            proxy_connect_timeout 3600;
            proxy_read_timeout 3600;
            proxy_send_timeout 3600;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            add_header X-Frame-Options SAMEORIGIN;
            proxy_pass http://172.19.74.12;
        }
            }
    server {
        listen       443;
        server_name  www.abcd.com;
        ssl on;  
        ssl_certificate server.crt;  
        ssl_certificate_key server.key;  
        ssl_session_timeout 5m;  
        ssl_ciphers 'AES128+EECDH:AES128+EDH:!aNULL';
        ssl_protocols TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        location / {
        proxy_pass https://172.19.74.12;
            send_timeout 3600;
            proxy_connect_timeout 3600;
            proxy_read_timeout 3600;
            proxy_send_timeout 3600;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            add_header X-Frame-Options SAMEORIGIN;
            #HSTS
            add_header Strict-Transport-Security 'max-age=63072000;includeSubdomains;preload';
        }
      
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

nc单机

服务器双网卡 172.19.74.12 192.168.1.1 (应该可以直接apachetls1.2 还没有试过)
nginx -apache-nc (apache与nginx 必须不同ip 相同端口)
httpd-ssl.conf (已经配置了apchessl 转发NC)

<VirtualHost 172.19.47.12:443>
ServerName 172.19.47.12:443
Listen 172.19.47.12:443

nginx 配置文件没有变化

遇到问题
跨域:
双网卡、同端口解决
portal静态文件无法加载
使用nginx1.12解决见https://qst123.oss-cn-beijing.aliyuncs.com/SETUP/nginx-win-1.12.zip
如下网站监测 https的安全性
https://myssl.com/
https://www.ssllabs.com/ssltest/analyze.html
最佳实践
https://blog.myssl.com/tag/zui-jia-shi-jian/

猜你喜欢

转载自www.cnblogs.com/qtong/p/10327518.html