apache - 奇怪的現象,PHP網站訪問首頁一直HTTP 408 錯誤

來源:互聯網
上載者:User

奇怪現象

1)每次看Apache訪問日誌,總是很多408錯誤

網站 .htaccess 配置及順序

  #非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]

Apache 訪問日誌

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:-"

奇怪的問題

不知道這些408訪問是怎麼產生的,沒有訪問來路也沒有請求瀏覽器資訊,就是408,每天都有很多,至少幾十個。

回複內容:

奇怪現象

1)每次看Apache訪問日誌,總是很多408錯誤

網站 .htaccess 配置及順序

  #非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]

Apache 訪問日誌

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:-"

奇怪的問題

不知道這些408訪問是怎麼產生的,沒有訪問來路也沒有請求瀏覽器資訊,就是408,每天都有很多,至少幾十個。

408 Request Timeout

維基百科上都有說的。這個資訊表明有人以較慢的速度在向你的伺服器發送請求。可能是:

  1. 使用者在手動輸入資料
  2. 使用者的網路慢死了
  3. 使用者想通過這種方式進行 DoS 攻擊
  4. 使用者的程式出錯了

後邊的「from:-」不知道是什麼欄位。大概是 UserAgent?

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.