Opened 6 years ago
Closed 6 years ago
#1746 closed defect (invalid)
websocket response 302 error
Description
I have deployed websocket protocol in nginx proxy,but websocket response 302 error!please help me,thank you very much.
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
For questions, please use mailing lists instead.
Note:
See TracTickets
for help on using tickets.
following is nginx.conf
#user www;
worker_processes 5;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
}
include tcp.conf;
#load_module /usr/local/src/headers-more-nginx-module-0.33;
http {
include vhosts/*.conf;
}
following is devm_wss.conf (websocket config)
#websocket 需要加下这个
map $http_upgrade $connection_upgrade {
upstream websocket {
}
server {
if ($scheme != https) {
location ~ /websocket {
location /wxauth/ {
location / {
}