php XAMPP 错误:www.example.com:443:0 服务器证书不包含与服务器名称匹配的 ID

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34376916/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 23:56:41  来源:igfitidea点击:

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

phpxamppssl-certificate

提问by Sauron

I am running XAMPP and have rebuilt my PHP server from the ground up, renamed the server from ServerV1to ServerV2, and now attempting a basic POST request from Android volley, returns the error found within the Apache logs:

我正在运行 XAMPP 并从头开始重建我的 PHP 服务器,将服务器从 重命名ServerV1ServerV2,现在尝试从 Android volley 发出基本的 POST 请求,返回在 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.

I am not listening on any used ports:

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

enter image description here

在此处输入图片说明

I have research others simply running as an administrator in sources like: https://teamtreehouse.com/community/solved-xampp-apache-errorand XAMPP - Apache Error

我研究了其他人只是在以下来源中以管理员身份运行:https: //teamtreehouse.com/community/solved-xampp-apache-errorXAMPP - Apache Error

Upon attempting that, it still does not work, where the only return from any POST is a 0.

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

NOTE: I have tested every action with google chromes POSTMAN and know my routes do work and return the proper JSON objects. https://chrome.google.com/webstore/detail/postman-rest-client-short/mkhojklkhkdaghjjfdnphfphiaiohkef?hl=en

注意:我已经使用 google chromes POSTMAN 测试了每个操作,并且知道我的路由可以正常工作并返回正确的 JSON 对象。 https://chrome.google.com/webstore/detail/postman-rest-client-short/mkhojklkhkdaghjjfdnphfphiaiohkef?hl=en

What steps can I take to alleviate this issue?

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

回答by SaaD Ahmed

Try just by commenting Listen 443(like #Listen 443)in httpd-ssl.conffile. it will Work 100%. Mine site it has work 100%.

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