windows + phpstudy integrated environment + apache + Tencent cloud ssl free certificate

After configuring according to Tencent Cloud's tutorial, restart apache, and apache cannot be restarted.

Problem 1 encountered:

  Port 443 is occupied by svnserver, modify the port used by svnserver, you can manually modify it yourself;

Question 2:

  httpd-ssl.conf problem, looking for a lot, still do not want. Until I used this configuration below and suddenly it worked. The reason, sorry, I can't explain it!

#C:\dncx.com\src
#https://dncx.zuhaoche.cn/
#C:\a\Apache\conf\ssl\1_root_bundle.crt
#C:\a\Apache\conf\ssl\2_dncx.zuhaoche.cn.crt
#C:\a\Apache\conf\ssl\3_dncx.zuhaoche.cn.key

Listen 443

<VirtualHost *:443>

DocumentRoot "C:\dncx.com\src"

ServerName dncx.zuhaoche.cn

ServerAlias zuhaoche.cn

SSLEngine on

SSLProtocol TLSv1 TLSv1.1 TLSv1.2

SSLCipherSuite HIGH: MEDIUM:! ANULL:! MD5

SSLCertificateFile "C:\a\Apache\conf\ssl\2_dncx.zuhaoche.cn.crt"

SSLCertificateKeyFile "C:\a\Apache\conf\ssl\3_dncx.zuhaoche.cn.key"

SSLCertificateChainFile "C:\a\Apache\conf\ssl\1_root_bundle.crt"

<Directory "C:\dncx.com\src">

Options +Indexes +FollowSymLinks +ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325689694&siteId=291194637