nginx:如何防止完全命名的SSL服务器块充当所有SSL的包罗万象
我有一个包含许多虚拟服务器的Web服务器。其中只有1个是SSL。问题是,因为没有侦听SSL的全部服务器块,所以对其他站点的任何https请求都由1个SSL块提供。 实际上,我的配置如下所示: # the catch all server { listen 80 default; # I could add this, but since I have no default cert, I cannot enable SSL, # and this listen ends up doing nothing (apparently). # listen 443; server_name _; # ... } # some server server { listen …