作者 主題: rewrite log  (閱讀 2085 次)

0 會員 與 1 訪客 正在閱讀本文。

olderboy

  • 憂鬱的高中生
  • ***
  • 文章數: 100
    • 檢視個人資料
rewrite log
« 於: 2008-07-15 10:17 »
想請教一下大家

我在我的apache上,使用了rewrite,當我打開後,rewrite log 出現了下面的訊息

引用
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='.cab$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '/(.*)$' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='a.jpg$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '/(.*)$' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='VerifyHumanInput.gif$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '^(.+)' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='^/abraincrush$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '^(.+)' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='^/m$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '/(.*)$' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='^/group$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '^(.+)' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='^/dwr$' => not-matched
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (3) applying pattern '^(.+)' to uri '/error/HTTP_UNAUTHORIZED.html.var'
98.223.148.4 - - [15/Jul/2008:10:11:16 +0800] [124.108.97.193/sid#9bca100][rid#9c3e9a8/initial/redir#1] (4) RewriteCond: input='/error/HTTP_UNAUTHORIZED.html.var' pattern='^/js$' => not-matched


從98.223.148.4這個IP,為什麼會一直來try我寫的rewrite rule丫
我在google查了一下,但也找不出為什麼,不知有人有這樣的情形嗎??


下面是我寫的rewrite rule

引用
RewriteEngine On
RewriteLog "/var/log/httpd/rewrite.log"
RewriteLogLevel 5
RewriteCond   %{HTTP_HOST}                 ^[^.]+\.stage\.iu\.com$
RewriteCond   %{REQUEST_URI}               ^/$
RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
RewriteRule   ^([^.]+)\.stage\.iu\.com(.*) /group/$1 [P,L]
RewriteCond   %{REQUEST_URI}           .do$  [OR]
RewriteCond   %{REQUEST_URI}           .jsp$ [OR]
RewriteCond   %{REQUEST_URI}           .jar$ [OR]
RewriteCond   %{REQUEST_URI}           .zip$ [OR]
RewriteCond   %{REQUEST_URI}           .cab$
RewriteRule   /(.*)$                       ajp://10.10.12.1:8009/$1 [P,L]
RewriteCond   %{REQUEST_FILENAME}          b.jpg$
RewriteRule   /(.*)$                       ajp://10.10.12.7:8009/$1 [P,L]
RewriteCond   %{REQUEST_FILENAME}          put.gif$
RewriteRule   /(.*)$                       ajp://10.10.12.1:8009/$1 [P,L]
RewriteCond   %{REQUEST_URI}               ^/m$
RewriteRule   ^(.+)                        ajp://10.10.12.1:8009/$1 [R,L]
RewriteCond   %{REQUEST_URI}               ^/group$
RewriteRule   /(.*)$                       ajp://10.10.12.1:8009/$1 [P,L]
RewriteCond   %{REQUEST_URI}               ^/dwr$
RewriteRule   ^(.+)                        ajp://10.10.12.1:8009/$1 [R,L]
RewriteCond   %{REQUEST_URI}               ^/js$
RewriteRule   ^(.+)                        ajp://10.10.12.1:8009/$1 [R,L]
RewriteCond   %{REQUEST_URI}               ^/js/jsp$
RewriteRule   ^(.+)                        ajp://10.10.12.1:8009/$1 [R,L]
RewriteCond   %{REQUEST_URI}               ^/js/message$
RewriteRule   ^(.+)                        ajp://10.10.12.1:8009/$1 [R,L]