server_name 这个不是在配置文件里面写死的吗?直接 nginx -T blahblah | grep server_name 是否可以解决问题?
在 2018年1月9日 下午3:45, <liuh...@gmail.com> 写道:
> 哦哦..好吧 thkx
>
> 在 2018年1月9日星期二 UTC+8下午3:19:05,tokers写道:
>>
>> Hi!
>>
>> 只能得到当前虚拟主机的 server_name,直接通过 ngx.var.server_name 就可以得到了。
>
> --
>