在我的VirtualHosts列表中:
testwordpress:443 -非侦听端口
端口:用于VirtualHost的443不是Apache侦听端口
https-vhosts.conf:
<VirtualHost *:443>
ServerName testwordpress
DocumentRoot "c:/wamp64/www/testwordpress"
SSLEngine on
SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "c:/wamp64/www/testwordpress/">
SSLOptions +StdEnvVars
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
httpd-ssl.conf:
DocumentRoot "${INSTALL_DIR}/www"
ServerName localhost:443
ServerAdmin admin@example.com
SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key"
SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt"
httpd.conf:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
文件出现在正确的文件夹中:
日志:
星期三06月08 :20:14.280523 2022 pid 16492:tid 648 AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1l PHP/7.4.26配置-恢复正常操作
06月8日上午11:20:14.280523 2022 pid 16492:tid 648 AH00456: Apache酒廊VS16服务器构建:10月7日16:27:02
星期三06月8日11:20:14.280523 2022 pid 16492:tid 648 AH00094:命令行:AH00094 -d C:/wamp64/bin/apache/apache2.4.51‘
星期三06月08 :20:14.281523 2022 pid 16492:tid 648 AH00418:父进程:创建子进程26888
星期三06月08 :20:14.444523 2022 pid 26888: AH01906: testwordpress:443:0服务器证书是CA证书(BasicConstraints: CA == TRUE!)
AH01909: testwordpress:443:0服务器证书不包含与服务器名称匹配的ID
星期三06月08 :20:14.463523 2022 pid 26888: AH01906: testwordpress:443:0服务器证书是CA证书(BasicConstraints: CA == TRUE!)
AH01909: testwordpress:443:0服务器证书不包含与服务器名称匹配的ID
星期三06月08 11:20:14.479523 2022 pid 26888:AH00354 604 :子:启动64个工作线程。
有什么问题吗?
发布于 2022-06-22 19:39:01
您必须告诉apache它可以在端口443上侦听,默认情况下它不能。
我倾向于将这一行添加到httpd-ssl.conf文件中。
Listen 443
https://stackoverflow.com/questions/72540148
复制相似问题