WDCP,apache SSL证书已经安装,正常使用,现在需要在安装第二个证书怎么操作
[i=s] 本帖最后由 yl19850329 于 2016-2-26 18:22 编辑 [/i][url=http://www.wdlinux.cn/bbs/thread-38463-1-1.html]http://www.wdlinux.cn/bbs/thread-38463-1-1.html[/url] 按照上面的步骤有一个域名已经可以使用ssl,现在需要另外一个域名也使用ssl,应该怎么操作
这个文件/www/wdlinux/httpd-2.2.22/conf/extra/httpd-ssl.conf 已经修改下面部分代码
怎么添加第二个域名才能生效
大概第76行
[code]# General setup for the virtual host
DocumentRoot "/www/web/A_com/public_html/"
ServerName www.A.com:443
ServerAlias A.com:443
ServerAdmin you@example.com
ErrorLog "/www/wdlinux/httpd-2.2.22/logs/error_log"
TransferLog "/www/wdlinux/httpd-2.2.22/logs/access_log"[/code]
大概118行
[code]SSLCertificateFile "/www/web/A_com/zhengshu/www_A_com.crt"[/code]
大概126行
[code]SSLCertificateKeyFile "/www/web/A_com/zhengshu/server.key"[/code]
大概136行
[code]SSLCertificateChainFile "/www/web/A_com/zhengshu/www_A_com.ca-bundle"[/code] 楼主您好,
如果您需要在同一个独立IP地址上设置多个SSL证书,请参考apache的SNI文档:https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
页:
[1]