在页面上报502的错误
目标地址:https://dashscope.aliyuncs.com/api/1/services/aion
请求地址:https://xiaohu.com/api/1/services/aion
代理是这么处理的:
location /api {
proxy_ssl_name xiaohu.com;
proxy_ssl_server_name on;
proxy_pass https://dashscope.aliyuncs.com;
}
查看日志报:
2024/05/20 11:43:50 [error] 181249#181249: *138254 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream, client: 117.26.10.18, server: xiaohu.com, request: "POST /api/1/services/aion HTTP/1.1", upstream: "https://17.13.23.31:443 /api/1/services/aion", host: "xiaohu.com", referrer: "https://xiaohu.com/models/"
2024/05/20 11:43:50 [error] 181249#181249: *1382354 connect() to [2131:3000:210::30c]:443 failed (101: Network is unreachable) while connecting to upstream, client: 117.26.10.18, server: xiaohu.com, request: "POST /api/1/services/aion HTTP/1.1", upstream: "https://[2131:3000:210::30c]:443 /api/1/services/aion", host: "xiaohu.com", referrer: "https://xiaohu.com/models/"
请问一下该怎么解决哎,我会一个个尝试,解决才会结单