nginx配置非443端口的https连接

server {
    listen 8000 ssl;
    ssl_certificate /path/to/ssl_files/xxx.pem;
    ssl_certificate_key /path/to/ssl_files/xxx.key;
    server_name www.test.com test.com;
}
  • 访问

https://www.test.com:8000/