#/etc/httpd/conf.d/ssl.conf 配置如下:
LoadModule ssl_module modules/mod_ssl.so
Listen 443
NameVirtualHost 109.109.109.109:443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout 300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
#/etc/httpd/conf.d/a.conf
<VirtualHost 109.109.109.109:443>
#其他内容
ServerName a.com
#其他内容
</VirtualHost>
#/etc/httpd/conf.d/b.conf
<VirtualHost 109.109.109.109:443>
#其他内容
ServerName b.com
#其他内容
</VirtualHost>
#/etc/httpd/conf.d/c.conf
<VirtualHost 109.109.109.129:443>
#其他内容
ServerName c.com
#其他内容
</VirtualHost>
注:109.109.109.129 该地址为别名地址[eth0:1设定]
本文出自 “WoSec” 博客,请务必保留此出处http://pathyon.blog.51cto.com/9465112/1747053
原文地址:http://pathyon.blog.51cto.com/9465112/1747053