【问题标题】:Wamp Apache: Port :443 used for the VirtualHost is not an Apache Listen portWamp Apache:用于 VirtualHost 的端口:443 不是 Apache 监听端口
【发布时间】:2022-06-23 03:39:01
【问题描述】:

在我的虚拟主机列表中:

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

文件存在于正确的文件夹中:

日志:

[2022 年 6 月 8 日星期三 11:20:14.280523] [mpm_winnt:notice] [pid 16492:tid 648] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.26 已配置 -- 正在恢复正常操作

[2022 年 6 月 8 日星期三 11:20:14.280523] [mpm_winnt:notice] [pid 16492:tid 648] AH00456:Apache Lounge VS16 服务器构建:2021 年 10 月 7 日 16:27:02

[2022 年 6 月 8 日星期三 11:20:14.280523] [core:notice] [pid 16492:tid 648] AH00094:命令行:'c:\wamp64\bin\apache\apache2.4.51\bin\httpd.exe -d C:/wamp64/bin/apache/apache2.4.51'

[Wed Jun 08 11:20:14.281523 2022] [mpm_winnt:notice] [pid 16492:tid 648] AH00418: Parent: Created child process 26888

[Wed Jun 08 11:20:14.444523 2022] [ssl:warn] [pid 26888:tid 604] AH01906: testwordpress:443:0 服务器证书是 CA 证书(BasicConstraints: CA == TRUE !?)

[Wed Jun 08 11:20:14.445523 2022] [ssl:warn] [pid 26888:tid 604] AH01909: testwordpress:443:0 服务器证书不包含与服务器名称匹配的 ID

[Wed Jun 08 11:20:14.463523 2022] [ssl:warn] [pid 26888:tid 604] AH01906: testwordpress:443:0 服务器证书是 CA 证书(BasicConstraints: CA == TRUE !?)

[Wed Jun 08 11:20:14.463523 2022] [ssl:warn] [pid 26888:tid 604] AH01909: testwordpress:443:0 服务器证书不包含与服务器名称匹配的 ID

[2022 年 6 月 8 日星期三 11:20:14.479523] [mpm_winnt:notice] [pid 26888:tid 604] AH00354:子级:启动 64 个工作线程。

可能是什么问题?

【问题讨论】:

    标签: apache ssl port wamp


    【解决方案1】:

    你必须告诉 apache 它可以监听 443 端口,默认情况下它不会。

    我倾向于将此行添加到 httpd-ssl.conf 文件中

    Listen 443
    

    【讨论】:

      猜你喜欢
      • 2014-02-22
      • 2013-10-29
      • 1970-01-01
      • 1970-01-01
      • 2015-11-28
      • 2012-05-26
      • 1970-01-01
      • 1970-01-01
      • 2019-09-22
      相关资源
      最近更新 更多