这是我设置内容:
upstream for_ssl {
server 127.0.0.1:1234;
}
proxy_pass http :// for_ssl;
下面是出的错:
400 Bad Request
Sec-WebSocket-Key not found.
This is a WebSocket service and can not be accessed via HTTP.
求高人指点。。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
nginx对长连接做代理的时候有个协议升级的概念
加上这段代码就没问题了,允许协议升级