文章又名:https多網(wǎng)站1個(gè)IP多個(gè)SSL證書(shū)的Apache設(shè)置辦法
引言:
設(shè)置過(guò)程:
::購(gòu)買(mǎi)證書(shū)不多闡述,網(wǎng)上很多教程都講過(guò)。
#啟用ssl模塊
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#Include conf/extra/httpd-ssl.conf
棄掉前面的 # 號(hào)
可以新建一個(gè)文件替代,如新建文件extar/ssl_one.conf
相應(yīng)的,在httpd.conf中將Include conf/extra/httpd-ssl.conf條目修改為Include conf/extra/ssl_one.conf
下面是實(shí)例:
Listen 443NameVirtualHost *:443SSLStrictSNIVHostCheck off<VirtualHost _default_:443>DocumentRoot "/usr/local/apache/htdocs/example.com"ServerName example.comServerAlias subdomain.example.comServerAdmin you@example.comSSLEngine onSSLProtocol all -SSLv2SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5SSLCertificateFile "/usr/local/apache/conf/server.crt"SSLCertificateKeyFile "/usr/local/apache/conf/server.key"SSLCertificateChainFile "/usr/local/apache/conf/1_root_bundle.crt"<FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars</FilesMatch><Directory "/usr/local/apache/htdocs/example.com"> AllowOverride All SSLOptions +StdEnvVars</Directory></VirtualHost><VirtualHost *:443>DocumentRoot "/usr/local/apache/htdocs/example2.com"ServerName example2.comServerAlias subdomain.example2.comSSLEngine onSSLProtocol all -SSLv2SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5SSLCertificateFile "/usr/local/apache/conf/server2.crt"SSLCertificateKeyFile "/usr/local/apache/conf/server2.key"SSLCertificateChainFile "/usr/local/apache/conf/1_root_bundle2.crt"<FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars</FilesMatch><Directory "/usr/local/apache/htdocs/example2.com"> AllowOverride All SSLOptions +StdEnvVars</Directory></VirtualHost>
說(shuō)明:一個(gè)<VirtualHost>代表一個(gè)站點(diǎn)
service httpd restart
文章題目:WDCP環(huán)境apache引擎下開(kāi)啟多站點(diǎn)SSL支持
分享URL:http://www.rwnh.cn/article20/scco.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站、定制開(kāi)發(fā)、品牌網(wǎng)站建設(shè)、軟件開(kāi)發(fā)、虛擬主機(jī)、面包屑導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)