ocalhost:443:0 server certificate does NOT include an ID which matches the s
证书申请的LetsEncrypt配置成功,但是无法使用htpps,关闭强制https时http可以访问,这是什么情况呢,第一次遇到,错误日志里有提示:
AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
<VirtualHost *:443>
ServerAdmin webmaster@example.com
DocumentRoot "d:/wwwroot/xxx"
ServerAlias xxx
ErrorLog "D:/BtSoft/wwwlogs/xxxerror.log"
CustomLog "D:/BtSoft/wwwlogs/xxxaccess.log" combined
#redirect 重定向
IncludeOptional conf/redirect/xxx/*.conf
#proxy 反向代理
IncludeOptional conf/proxy/xxx*.conf
ErrorDocument 404 /404.html
#SSL
SSLEngine On
SSLCertificateFile conf/ssl/xxxfullchain.pem
SSLCertificateKeyFile conf/ssl/xxx/privkey.pem
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
Include conf/php/70.conf
#PATH
<Directory "d:/wwwroot/xxx">
Options FollowSymLinks ExecCGI
AllowOverride All
Require all granted
DirectoryIndex index.php default.php index.html index.htm default.html default.htm
</Directory>
</VirtualHost>
这是配置文件
页:
[1]