国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

如何設(shè)置apache服務(wù)安裝ssl證書

2017-11-10 22:29:54 10665

這里以widnows下安裝apache為實(shí)例:
1.安裝apache和php這里請(qǐng)參考http://www.tjdsmy.cn/help/show-4824(這里以apache使用fcgi的方式調(diào)用php)
2.apache和php安裝之后,打開(kāi)http.con文件中把mod_ssl.so的注釋去掉
image.png
 3.在httpd.conf文件中找到httpd-ssl.conf把注釋去掉
image.png
4.在conf/extra/httpd-ssl.conf文件建立https站點(diǎn)(其實(shí)和我們平時(shí)在httpd-vhost.conf中建立的網(wǎng)站是一樣的,只是多了引入證書的鏈接),如下:

<VirtualHost *:443>
    SSLEngine on
    SSLProtocol all -SSLv2
    SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
    SSLCertificateFile D:\wwwroot\discuz\ssl\certificate.crt
       SSLCertificateKeyFile D:\wwwroot\discuz\ssl\private.key
       SSLCertificateChainFile D:\wwwroot\discuz\ssl\ca_bundle.crt
    ServerAdmin webmaster@dummy-host.cc.com
    DocumentRoot "D:/wwwroot/discuz"
    ServerName xn--eqvw44d.com
    ServerAlias www.tjdsmy.cn
    ErrorLog "logs/discuz.com-error.log"
    CustomLog "logs/discuz.com-access.log" common
    FcgidInitialEnv PHPRC "C:/php/5.3"
    FcgidWrapper "C:/php/5.3/php-cgi.exe" .php
<Directory d:/wwwroot/discuz>
        Options FollowSymLinks ExecCGI
              AllowOverride all
        Require all granted
</Directory>
</VirtualHost>

image.png

5.測(cè)試

image.png

提交成功!非常感謝您的反饋,我們會(huì)繼續(xù)努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題: