*.freeshell.ustc.edu.cn 是指向 202.38.70.159,少院机房的一台服务器,在那台服务器上配置了 nginx 反向代理,对不同的 hostname 设置不同的 proxy_pass。

我忘了写 proxy_set_header Host,所以 freeshell 上的 Discuz 程序看到的 HTTP header Host 字段变成了 s${nodeno}.freeshell.ustc.edu.cn。目前已经修复。

还添加了 proxy_set_header X-Real-IP,程序判断来源 IP 请使用 HTTP header 中的 X-Real-IP。