XAMPP Error: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

XAMPP Error: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

我是 运行 XAMPP 并从头开始重建我的 PHP 服务器,将服务器从 ServerV1 重命名为 ServerV2,现在尝试来自 Android volley 的基本 POST 请求,returns 在 Apache 日志中发现的错误:

[Sat Dec 19 19:24:57.528601 2015] [core:notice] [pid 7956:tid 260] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Sat Dec 19 19:24:57.531601 2015] [mpm_winnt:notice] [pid 7956:tid 260] AH00418: Parent: Created child process 5784
[Sat Dec 19 19:24:58.047631 2015] [ssl:warn] [pid 5784:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Dec 19 19:24:58.290645 2015] [ssl:warn] [pid 5784:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Dec 19 19:24:58.325647 2015] [mpm_winnt:notice] [pid 5784:tid 272] AH00354: Child: Starting 150 worker threads.

我没有监听任何使用过的端口:

作为管理员,我简单地研究了其他人 运行,例如:https://teamtreehouse.com/community/solved-xampp-apache-errorXAMPP - Apache Error

尝试之后,它仍然不起作用,其中任何 POST 中唯一的 return 是 0.

注意:我已经用 google chromes POSTMAN 测试了每一个动作,并且知道我的路线确实有效并且 return 正确的 JSON 对象。 https://chrome.google.com/webstore/detail/postman-rest-client-short/mkhojklkhkdaghjjfdnphfphiaiohkef?hl=en

我可以采取哪些措施来缓解这个问题?

尝试在 httpd- 中评论 Listen 443(如#Listen 443) ssl.conf 文件。它将 100% 工作。我的网站它有 100% 的工作。

只需关闭正在使用 443 端口的应用程序并重试。我的 vmware 工作站使用的是 443 端口,我刚刚杀死 vmware 的进程树并重试它对我有用。

安装新的 xampp (7.3.16) 适合我

我知道这已经晚了,但我找到了答案......显然你必须右键单击 xampp-control.exe 文件并 运行 它作为管理员,然后它现在可能完美运行!这对我有用。

这可能是因为 DocumentRoot 路径设置不正确。

我在将我的 xampp 文件夹从 windows 7 复制到 windows 10 的另一个安装后遇到了这个问题。

已尝试此处列出的解决方案,但 none 对我有用。我没有时间尝试其他解决方案,所以我只是从头开始进行新安装

试试这个:

  1. 在此处打开 httpd-ssl.conf

    C:\xampp\apache\conf\extra
    
  2. 注释掉该行并将其更改为localhost

    #ServerName www.example.com:443
    ServerName localhost
    
  3. 当然还要重启你的 Apache

我遇到了同样的问题,我已经解决了。我的原因是因为端口 8080 正在使用中。我在管理员模式下的命令提示符中通过 运行 "netstat -ab" 找到了它。然后我将端口(从 xampp 配置和 httpd.conf)更改为其他东西并且它有效。