【发布时间】:2016-05-21 20:15:51
【问题描述】:
我的 apache 服务器上有一个通配符 SSL 证书。它适用于我的域,但错误是它适用于我的 apache 服务器上的所有域!而且我不想要它,当我继续https://www.mywebsitewithouthttps.com 时,firefox 告诉我该页面不安全,因为证书适用于 www.mydomainwithhttps.com。如果我在浏览器上为此 SSL 错误添加例外,则显示的不是“mywebsitewithouthttps.com”而是“mydomainwithhttps.com”(在此 URL 上:https://www.mywebsitewithouthttps.com)!
我不希望我的证书适用于所有其他域!这是一个大问题,因为 Google 正在使用 mydomainwithhttps.com 的内容在 HTTPS 上抓取我的所有其他域并将其编入索引:-(
这是我的 SSL 虚拟主机:
NameVirtualHost *:443
<VirtualHost *:443>
ServerName www.mydomainwithhttps.com
DocumentRoot "/home/mydomainwithhttps/www"
suPHP_Engine On
suPHP_AddHandler x-httpd-php
suPHP_UserGroup mydomainwithhttps users
AddHandler x-httpd-php .php
SSLEngine on
SSLCertificateFile /certificates/ssl_certificate.crt
SSLCertificateKeyFile /certificates/www.mydomainwithhttps.com.key
SSLCACertificateFile /certificates/IntermediateCA.crt
</VirtualHost>
【问题讨论】:
-
您有一个通配符 SSL 证书。 SSL 是一种安全传输。离题。