nginx:如何防止一个完全命名的SSL服务器块充当所有SSL的catchall
我有一个Web服务器与许多虚拟服务器。 其中只有一个是SSL。 问题是,因为没有监听SSL的Catchall服务器块,所以对其他站点的任何https请求都由1个SSL块提供服务。 本质上,我的configuration如下所示: # 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 80; server_name server1.com; […]