有时我的网站需要很长时间来加载,从不同的页面,不同的设备和浏览器,它需要超过一分钟,有时它显示内容,有时500内部错误,并显示其他网站。
我将网站上传到2个不同的服务器,这是相同的,服务器是我的,没有其他网站托管。
我可以从error.log获取这些错误:
105.151.122.22 - - [25/Nov/2015:07:08:21 +0300] "-" 408 0 "-" "-"
105.151.122.22 - - [25/Nov/2015:07:08:21 +0300] "-" 408 0 "-" "-"
105.151.122.22 - - [25/Nov/2015:07:08:22 +0300] "-" 408 0 "-" "-"
105.151.122.22 - - [25/Nov/2015:07:08:22 +0300] "-" 408 0 "-" "-"
105.151.122.22 - - [25/Nov/2015:07:08:22 +0300] "-" 408 0 "-" "-"
::1 - - [25/Nov/2015:07:08:25 +0300] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.12 (Ubuntu) (internal dummy connection)"
来自access.log的和论文:
[Wed Nov 25 07:09:13.008575 2015] [:error] [pid 14972] [client 105.151.122.22:55678] PHP Stack trace:
[Wed Nov 25 07:09:13.008608 2015] [:error] [pid 14972] [client 105.151.122.22:55678] PHP 1. {main}() /home/alfirdaouscom/www/index.php:0
[Wed Nov 25 07:09:13.008645 2015] [:error] [pid 14972] [client 105.151.122.22:55678] PHP 2. require_once() /home/alfirdaouscom/www/index.php:6170
因此,虽然没有加载,但我可以通过SSH访问服务器,我可以轻松上传文件。
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
提前致谢
答案 0 :(得分:1)
Http 408错误通常难以解决,这些基本上是"请求超时" 。您需要检查Web服务器上的工作负载。 请检查此链接https://serverfault.com/questions/383290/too-many-408-error-codes-in-access-log