配置文件:nginx.conf

http {
# ...
# 新增以下配置
    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }
# ...
}
……

阅读全文