首頁  >  文章  >  後端開發  >  本機xampp運作環境,瀏覽器存取本機環境出現ERR_CONNECTION_RESET

本機xampp運作環境,瀏覽器存取本機環境出現ERR_CONNECTION_RESET

不言
不言原創
2018-05-24 15:12:014530瀏覽

本地佈置了一個環境,​​apache php運作沒有問題。 echo phpinfo()
pboard.png](/img/bVF2CF)

但是在打開本地網站環境的時候卻無法打開:如下圖

xampp中已經打開ssl模塊

為何?

apache errorlog

AH00112: Warning: DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] does not exist
[Fri Nov 25 11:32:17.419428 2016] [ssl:warn ] [pid 5936:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 25 11:32:17.445843. 5936:tid 608] AH00354: Child: Starting 150 worker threads.
[Fri Nov 25 11:33:22.663569 2016] [mpm_winnt:notice] [pid 6500: idcesd atus 3221225477 - - Restarting.
AH00112: Warning: DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] does not exist
[Fri Nov 25 11:33:23.063262 2016] [pslwarnn] :tid 604] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 25 11:33:23.087278 2016] [ Nov 25 11:33:23.087278 2016] [mpm]m. ] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Fri Nov 25 11:33:23.087278 2016] [mpt]m. ] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 10:17:39
[Fri Nov 25 11:33:23.087278 2016] [core:notice] [pid 6500:id 6003:d .exe -d D:/xampp2/apache'
[Fri Nov 25 11:33:23.089281 2016] [mpm_winnt:notice] [pid 6500:tid 604] AH00418:notice] [pid 6500:tid 604] AH00418: Parent: Created 1800108 processl D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] does not exist
[Fri Nov 25 11:33:23.459542 2016] [ssl:warn] [pid 4480:tid 569] AH. com:443:0 server certificate does NOT include an ID which matches the server name
AH00112: Warning: DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] do:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] does not exo :33:23.551973 2016] [ssl:warn] [pid 4480:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name 23.576003 2016] [mpm_winnt:notice] [pid 4480:tid 568] AH00354: Child: Starting 150 worker threads.

回覆內容:

ap echo phpinfo()

pboard.png](/img/bVF2CF)

但是在打開本地網站環境的時候卻無法打開:如下圖

xampp中已經打開ssl模塊

為何?

apache errorlog

AH00112: 警告:DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] 不存在
[Fri Nov 25 11:32:17.419428 2016] [ssl:warn] [6pid AH01909: www.example.com:443:0 伺服器憑證不包含與伺服器名稱相符的ID
[Fri Nov 25 11:32:17.445843 2016] [mpm_winnt:notice] [pid 5936:tid 608] 子進程啟動150 個工作線程。
[Fri Nov 25 11:33:22.663569 2016] [mpm_winnt:notice] [pid 6500:tid 604] AH00428:父進程:子進程 5936 已退出,狀態為 327 --2547 -- 2547 --。
AH00112:警告: DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend] 不存在
[Fri Nov 25 11:33:23.063262 2016] [ssl:warn] [pidt] AH01909: www .example.com:443:0 伺服器憑證不包含與伺服器名稱相符的ID
[Fri Nov 25 11:33:23.087278 2016] [mpm_winnt:notice] [pid 6500:tAH604] 。 18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 配置-- 恢復正常操作
[Fri Nov 25 11:33:23.087278 2016] [mpm_winnt:notice] [pid 6500:tidVC 104]建置:2015年12月9日10:17:39
[2016年11月25日星期五11:33:23.087278][核心:通知][pid 6500:tid 604] AH00094:通知列][pid 6500:tid 604] AH00094:指令列:'dbinxhttp exe -d D:/ xampp2/apache'
[Fri Nov 25 11:33:23.089281 2016] [mpm_winnt:notice] [pid 6500:tid 604] AH00418:父級:建立子程序448018050001 D:/xampp2/htdocs/ haizhi-service/haizhi-service/frontend] 不存在
[Fri Nov 25 11:33:23.459542 2016] [ssl:warn] [pid 4480:tid 568] AH01909.com :443:0 伺服器憑證不包含與伺服器名稱相符的ID
AH00112:警告:DocumentRoot [D:/xampp2/htdocs/haizhi-service/haizhi-service/frontend]不存在
[Fri Nov 25 11:33:23.51973 2016] [ ssl:warn] [pid 4480:tid 568] AH01909: www.example.com:443:0 伺服器憑證不包含與伺服器名稱相符的ID
[Fri Nov 25 11:33:23.576003 2016] [mmp. notice ] [pid 4480:tid 568] AH00354: Child: 正在啟動150 個工作執行緒。

連接被重置了,把 php.ini 的設定項

session.use_only_cookies 改为1

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn