Home >Backend Development >PHP Tutorial >apache - 奇怪的现象,PHP网站访问首页一直HTTP 408 错误
1)每次看Apache访问日志,总是很多408错误
<code> #非3www重定向在DNSPOD中已设置 RewriteCond %{HTTP_HOST} ^myhost.cn [NC] RewriteRule ^(.*)$ http://www.myhost.cn/$1 [L,R=301] #非3www重定向在DNSPOD中已设置 RewriteCond %{HTTP_HOST} !^(mywww|localhost|192.168.) [NC] RewriteCond %{HTTP_HOST} !(my.(cn|loc|test))$ [NC] RewriteRule ^(.*)$ http://www.myhost.cn/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(xml|html|php)$ RewriteCond %{REQUEST_URI} !\/$ RewriteRule ^(.*)$ /$1/ [L,R=301] </code>
<code>2014-12-23 15:44:46 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:46 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" </code>
<code>不知道这些408访问是怎么产生的,没有访问来路也没有请求浏览器信息,就是408,每天都有很多,至少几十个。 </code>
1)每次看Apache访问日志,总是很多408错误
<code> #非3www重定向在DNSPOD中已设置 RewriteCond %{HTTP_HOST} ^myhost.cn [NC] RewriteRule ^(.*)$ http://www.myhost.cn/$1 [L,R=301] #非3www重定向在DNSPOD中已设置 RewriteCond %{HTTP_HOST} !^(mywww|localhost|192.168.) [NC] RewriteCond %{HTTP_HOST} !(my.(cn|loc|test))$ [NC] RewriteRule ^(.*)$ http://www.myhost.cn/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(xml|html|php)$ RewriteCond %{REQUEST_URI} !\/$ RewriteRule ^(.*)$ /$1/ [L,R=301] </code>
<code>2014-12-23 15:44:46 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:46 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" 2014-12-23 15:44:51 119.130.186.24 - myhost.cn- - 80 "-" 408 0 0 "from:-" </code>
<code>不知道这些408访问是怎么产生的,没有访问来路也没有请求浏览器信息,就是408,每天都有很多,至少几十个。 </code>
408 Request Timeout
维基百科上都有说的。这个信息表明有人以较慢的速度在向你的服务器发送请求。可能是:
后边的「from:-」不知道是什么字段。大概是 UserAgent?