websocket:日常總結
阿新 • • 發佈:2018-08-28
cti class add default failed oot led header 參考
1.報錯:DefaultHandshakeHandler : Handshake failed due to invalid Upgrade header
參考文章:https://www.cnblogs.com/interdrp/p/7729718.html
在nginx中添加藍色配置:
server { listen 80; server_name test.jxt.com; charset utf-8; access_log logs/jxt.access.log main; location / { #root html; #index index.html index.htm; proxy_pass http://jxt; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } #error_page404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
websocket:日常總結