Nginx配置ssl证书

server {
    listen       80;
    listen       443 ssl;
    server_name  localhost;
    ssl_certificate      /SSLPATH/zhang.crt;
    ssl_certificate_key  /SSLPATH/zhang.key;
    location / {
        # TOMCAT
        proxy_pass http://localhost:5566;
    }
}

OPENSSL 自签证书

你可能感兴趣的:(Nginx配置ssl证书)