系统:Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-105-generic x86_64)1、一个IP 如(120.30.30.108)我监听了两个端口(443,8443),共用一套证书两个服务:https://120.30.30.108:8443https://120.30.30.108:443。两个服务都同时启动。2、问题 :客户端向https://120.30.30.108:8443/sendData 发起POST请求,8443这个没有收到,却发送到了443这个服务上。我用postman接口测试工具测试正常,不会出现这个问题。3、nginx 两个server配置如下:server1: https://120.30.30.108:8443server { charset utf-8; client_max_body_size 128M; listen 9008 backlog=2048; listen 8443 ssl; server_name 120.30.30.108; ssl_certificate /var/zhengshu/server.crt; ssl_certificate_key /var/zhengshu/server.key; ssl_session_timeout 5m; }server2: https://120.30.30.108:443 server { charset utf-8; client_max_body_size 128M; listen 9008 backlog=2048; listen 443 ssl; server_name 120.30.30.108; ssl_certificate /var/zhengshu/server.crt; ssl_certificate_key /var/zhengshu/server.key; ssl_session_timeout 5m; }我的nginx 支持:TLS SNI support enabled求解。谢谢!
目前暂无任何回答
- 0 回答
- 0 关注
- 3076 浏览
添加回答
举报
0/150
提交
取消