|
最为奇怪的,我配置了 https://fn.com。 我用 https://www.fn.com 去访问。 curl 提升 ssl format error。ssh 上去看 ngx server.log 。却在 access.log ,并且还是 200.。 然后抓包看到三次握手成功后,client 发送协商 ssl 的 hello 请求,服务端放回了一个 http status 为 400,body 为 ngx HTML: bad gateway 。然后我才去检查 host 配置,然而飞牛的 ngx host 配置应该是没有配置在直接配置 ngx 的 config 里面。看样纸是实现了 nginx lib so。我看到配置文件开头加载了一个 so。然后才想去检测 host 配置,最后解决了。
---------------------------
飞牛提示报错是否可以人性化点,比如没有配置 host 的直接返回 host not found |
|