配置了SSL,myssl.com检测到两个证书,请教!
https://i.loli.net/2018/09/11/5b97ad288ff16.pngVPS,配置了多个站,启用了SSL,检测时有两RSA,一个证书是这个网站匹配的,另一个却是这个主机上另一个网站的证书。vhost的配置如下:
server
{
listen 80;
server_name test.com www.test.com;
return 301 https://www.test.com$request_uri;
}
server
{
listen 443 ssl http2;
server_name test.com;
ssl_certificate /usr/local/nginx/conf/ssl/test.com/fullchain.cer;
ssl_certificate_key /usr/local/nginx/conf/ssl/test.com/test.com.key;
return 301 https://www.test.com$request_uri;
}
server
{
listen 443 ssl http2;
server_name www.test.com;
ssl_certificate /usr/local/nginx/conf/ssl/test.com/fullchain.cer;
ssl_certificate_key /usr/local/nginx/conf/ssl/test.com/test.com.key;
......
}
一个vhost检测时,怎么会检测到另一个vhost下的证书呢?请教军哥了!百度半天,仍未找到答案,特来请教!
[ 本帖最后由 huaxing211 于 2018-9-11 20:03 编辑 ] 在同一个ip上部署的ssl虚拟主机肯定是都能获取到的
页:
[1]