【问题标题】:Laragon 400 Bad Request Laravel 5.1Laragon 400 错误请求 Laravel 5.1
【发布时间】:2017-08-28 08:14:51
【问题描述】:

刚刚我安装 laragon 并收到 400 个错误请求,我不知道如何解决。 Laragon full 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.

【问题讨论】:

  • 错误日志中没有与访问日志中的请求相对应的内容。您可能应该检查 laravel 的错误日志
  • 我没有任何 .log 文件 p.s.我从 github 克隆了项目。
  • 需要查看的日志位于/storage/logs/
  • @NicklasKevinFrank 为空,只有 .gitignore

标签: php laravel laragon


【解决方案1】:

确保您的 ServerName 仅包含字母数字字符。

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

【讨论】:

    猜你喜欢
    • 2017-12-14
    • 2016-12-29
    • 1970-01-01
    • 2017-04-10
    • 2017-01-08
    • 2016-02-25
    • 2016-04-07
    • 2021-01-07
    • 1970-01-01
    相关资源
    最近更新 更多