问题
php start.php start
客服系统配置https,websocket启动报如下错误:
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
解决办法
其实是nginx 配置问题
proxy_pass 代理需要为https
# websocket请求代理转发指定端口
location ~ /app{
proxy_pass https://127.0.0.1:9091;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}