2

刚才我安装 laragon 并收到 400 个错误请求,我不知道如何解决。Laragon 完整版 2.2.2 php-7.1.1

访问日志——

127.0.0.1 - - [03/Apr/2017:15:42:44 +0300] "GET / HTTP/1.1" 400 347  
127.0.0.1 - - [03/Apr/2017:15:42:44 +0300] "GET /favicon.ico HTTP/1.1" 400 347

错误日志——

Apache server interrupted...  
[Mon Apr 03 15:42:38.008826 2017] [mpm_winnt:notice] [pid 11704:tid 580]  AH00422: Parent: Received shutdown signal -- Shutting down the server.    
[Mon Apr 03 15:42:42.686208 2017] [core:warn] [pid 16048:tid 548] AH00098: pid  
  file C:/laragon/bin/apache/httpd-2.4.25-win32-VC14/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?  
[Mon Apr 03 15:42:42.827314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2k PHP/7.1.1 configured -- resuming normal operations  
[Mon Apr 03 15:42:42.827314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52  
[Mon Apr 03 15:42:42.827314 2017] [core:notice] [pid 16048:tid 548] AH00094: Command line: 'C:\\laragon\\bin\\apache\\httpd-2.4.25-win32-VC14\\bin\\httpd -d C:/laragon/bin/apache/httpd-2.4.25-win32-VC14'  
[Mon Apr 03 15:42:42.829314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00418: Parent: Created child process 14292  
[Mon Apr 03 15:42:44.474536 2017] [mpm_winnt:notice] [pid 14292:tid 612] AH00354: Child: Starting 64 worker threads.
4

1 回答 1

3

确保您ServerName只包含字母数字字符。

例如:在按预期工作时http://dummy_domain.local产生400 Bad Request(使用 Apache 2.4) 。http://dummy-domain.local

于 2018-01-19T13:54:02.743 回答