Google apache请求超出限制错误?

时间:2012-05-29 19:25:45

标签: apache logging request

查看 tail 打印:

tail error_log -f
[Tue May 29 21:30:31 2012] [error] [client 66.249.71.232] Request exceeded the l                    imit of 10 internal redirects due to probable configuration error. Use 'LimitInt                    ernalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get                     a backtrace.
[Tue May 29 21:34:50 2012] [error] [client 207.46.13.49] Request exceeded the li                    mit of 10 internal redirects due to probable configuration error. Use 'LimitInte                    rnalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a                     backtrace.
[Tue May 29 21:49:46 2012] [error] [client 66.249.71.232] Request exceeded the l                    imit of 10 internal redirects due to probable configuration error. Use 'LimitInt                    ernalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get                     a backtrace.
[Tue May 29 21:52:47 2012] [error] [client 66.249.71.9] Request exceeded the lim                    it of 10 internal redirects due to probable configuration error. Use 'LimitInter                    nalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a                     backtrace.
[Tue May 29 21:54:48 2012] [error] [client 66.249.71.78] Request exceeded the li                    mit of 10 internal redirects due to probable configuration error. Use 'LimitInte                    rnalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a                     backtrace.
[Tue May 29 22:06:06 2012] [error] [client 66.249.71.78] Request exceeded the li                    mit of 10 internal redirects due to probable configuration error. Use 'LimitInte                    rnalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a                     backtrace.
[Tue May 29 22:09:54 2012] [error] [client 66.249.71.9] Request exceeded the lim                    it of 10 internal redirects due to probable configuration error. Use 'LimitInter                    nalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a                     backtrace.
[Tue May 29 22:15:48 2012] [error] [client 208.115.111.72] Request exceeded the                     limit of 10 internal redirects due to probable configuration error. Use 'LimitIn                    ternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get                     a backtrace.

这是我的.htaccess

SETENV

 APPLICATION_ENV development

# ----------------------------------------------------------------------
# Gzip compression
# ----------------------------------------------------------------------

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
<FilesMatch "\\.(js|css|html|htm|php|xml|otf|eot|ttf|svg)$">
SetOutputFilter DEFLATE
</FilesMatch>

# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------

# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk


<IfModule mod_headers.c>
    Header set X-UA-Compatible "IE=Edge,chrome=1"
    # mod_headers can't match by content-type, but we don't want to send this header on *everything*
    <FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|xpi|safariextz|vcf)$" >
      Header unset X-UA-Compatible
    </FilesMatch>
</IfModule>

# ----------------------------------------------------------------------
# Expires headers (for better cache control)
# ----------------------------------------------------------------------

#
# These are pretty far-future expires headers
# They assume you control versioning with cachebusting query params like:
#   <script src="application.js?20100608">
# Additionally, consider that outdated proxies may miscache
#
#   www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/

#
# If you don`t use filenames to version, lower the css and js to something like "access plus 1 week"
#

<IfModule mod_expires.c>
  ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
  ExpiresDefault                          "access plus 1 month"

# cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
  ExpiresByType text/cache-manifest       "access plus 0 seconds"



# Your document html
  ExpiresByType text/html                 "access plus 0 seconds"

# Data
  ExpiresByType text/xml                  "access plus 0 seconds"
  ExpiresByType application/xml           "access plus 0 seconds"
  ExpiresByType application/json          "access plus 0 seconds"

# RSS feed
  ExpiresByType application/rss+xml       "access plus 1 hour"

# Favicon (cannot be renamed)
  ExpiresByType image/x-icon              "access plus 1 week"

# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 1 month"
  ExpiresByType image/png                 "access plus 1 month"
  ExpiresByType image/jpg                 "access plus 1 month"
  ExpiresByType image/jpeg                "access plus 1 month"
  ExpiresByType video/ogg                 "access plus 1 month"
  ExpiresByType audio/ogg                 "access plus 1 month"
  ExpiresByType video/mp4                 "access plus 1 month"
  ExpiresByType video/webm                "access plus 1 month"

# HTC files  (css3pie)
  ExpiresByType text/x-component          "access plus 1 month"

# Webfonts
  ExpiresByType font/truetype             "access plus 1 month"
  ExpiresByType font/opentype             "access plus 1 month"
  ExpiresByType application/x-font-woff   "access plus 1 month"
  ExpiresByType image/svg+xml             "access plus 1 month"
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

# CSS and JavaScript
  ExpiresByType text/css                  "access plus 1 year"
  ExpiresByType application/javascript    "access plus 1 year"
  ExpiresByType text/javascript           "access plus 1 year"

  <IfModule mod_headers.c>
    Header append Cache-Control "public"
  </IfModule>

</IfModule>

# ----------------------------------------------------------------------
# Proper MIME type for all files
# ----------------------------------------------------------------------


# JavaScript
#   Normalize to standard type (it's sniffed in IE anyways)
#   tools.ietf.org/html/rfc4329#section-7.2
AddType application/javascript         js

# Audio
AddType audio/ogg                      oga ogg
AddType audio/mp4                      m4a

# Video
AddType video/ogg                      ogv
AddType video/mp4                      mp4 m4v
AddType video/webm                     webm

# SVG
#   Required for svg webfonts on iPad
#   twitter.com/FontSquirrel/status/14855840545
AddType     image/svg+xml              svg svgz
AddEncoding gzip                       svgz

# Webfonts                            
AddType application/vnd.ms-fontobject  eot
AddType application/x-font-ttf    ttf ttc
AddType font/opentype                  otf
AddType application/x-font-woff        woff

# Assorted types                                     
AddType image/x-icon                   ico
AddType image/webp                     webp
AddType text/cache-manifest            appcache manifest
AddType text/x-component               htc
AddType application/x-chrome-extension crx
AddType application/x-xpinstall        xpi
AddType application/octet-stream       safariextz
AddType text/x-vcard                   vcf


# ----------------------------------------------------------------------
# ETag removal
# ----------------------------------------------------------------------

# FileETag None is not enough for every server.
<IfModule mod_headers.c>
  Header unset ETag
</IfModule>


# Since we`re sending far-future expires, we don't need ETags for static content.
# developer.yahoo.com/performance/rules.html#etags
FileETag None

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^

.*$ index.php [NC,L]

此客户IP请求来自Google抓取工具。

这是一个谷歌格式不正确的请求,如何解决这个问题?

感谢的!!

0 个答案:

没有答案