我想在同一个VPS上托管多个域,并且需要为这些域配置SSL证书。服务器是Ubuntu12.04。所有域都有自己的证书。
我需要关于默认的多个域配置的帮助-ssl。
发布于 2014-11-09 09:39:38
您应该在Apache中创建多个虚拟主机,并为每个虚拟主机分别分配SSL证书。
示例:
NameVirtualHost *:443
<VirtualHost *:443>
ServerName some.domain.com
# SSL options, other options, and stuff defined here.
</VirtualHost>
<VirtualHost *:443>
ServerName some.domain2.com
# SSL options, other options, and stuff defined here.
</VirtualHost>对于SSL选项,请参阅:http://httpd.apache.org/docs/current/ssl/ssl_howto.html
确保将NameVirtualHost添加到配置中。
https://serverfault.com/questions/643030
复制相似问题