使用NGINX配置HTTPS服务器时同一个IP绑定多个站点问题
更新日期:
NGINX HTTPS SERVER
NGINX在配置HTTPS Server时,如果一个IP配置多个HTTPS服务连接,会存在问题。其官方给出了相关解答:
官方说明
1 | server { |
With this configuration a browser receives the default server’s certificate, i.e. www.example.com regardless of the requested server name. This is caused by SSL protocol behaviour. The SSL connection is established before the browser sends an HTTP request and nginx does not know the name of the requested server. Therefore, it may only offer the default server’s certificate.