Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter cito

    (@cito)

    i stripped out the leading ip address and domain from part of the loop in rewrite log

    this is what is looping in the log when the image search causes the “Request exceeded the limit of 10 internal redirects”

    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘^(.*)$’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern ‘.’ to uri ‘2011/05/my-soundcloud/akai-lpk25-lpd8/’
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/

    there’s tons more you can see the original in the rewrite log but you can see it’s constantly looping applying this “.” pattern

    Thread Starter cito

    (@cito)

    then it hits [perdir /var/www/wordpress/] forcing responsecode 403 for /var/www/wordpress/2011

    and starts looping again all in 1 huge block of spam in the rewrite log

    then it kicks the “request exceeded limit of 10 internal redirects” error to var/log/apache2/error.log when the spam loop reaches 10 loops in rewritelog

    there’s some rule in the bps .htaccess rewrite that is causing image search preview iframes to loop

    Plugin Author AITpro

    (@aitpro)

    Ok i found the security filter.

    If you want your site to display in the preview then comment out this security filter in the root htaccess file by putting a pound sign in front of it #.

    #RewriteCond %{HTTP_REFERER} (%0A|%0D|%27|%3C|%3E|%00) [NC,OR]

    And the URL parsing issue only occurred on my XAMPP testing site so the actual correct site does display after commenting out the security filter above.

    Plugin Author AITpro

    (@aitpro)

    The security violation is that %3C and %3E are being used in the Referer string so you can just remove those and not have to comment out the entire security filter if you want to go that route.

    this works fine

    RewriteCond %{HTTP_REFERER} (%0A|%0D|%27|%00) [NC,OR]

    Thread Starter cito

    (@cito)

    That fixed it!

    the image search site preview window works now.

    May I ask what that line actually does? I don’t speak “rewrite config”
    hehe

    But that seems to have fixed the problem no more “exceeded the limit of 10” redirects

    and no more loop spam in the rewrite log

    and testing the yahoo image link preview works now with no error 500’s

    thank you again I’ll have to copy this to a text file for future use in case problem occurs on future upgrades or whatnot.

    just curious what that specific rewrite rule actually is doing and why it caused my problem?

    again thank you

    Edited to add: Ok I left the line and only took out the “3C 3E” part only, retested and still fixed… again I appreciate all the help

    Plugin Author AITpro

    (@aitpro)

    The condition says to not allow certain coding characters that are considered unsafe in a Referer string, but I think allowing the angle brackets < > in a Referer string is not that big a deal. Allowing the angle brackets in a Query string security filter would be a big deal. ??

    Actually it was just the website preview that was not being grabbed. The images were are retrieved successfully with or without the security rule modification. Personally I actually like that fact, but for the type of site you have you would probably want both your site and image files to be grabbed.

    I had the same issue and it appears to now be solved. Thanks!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Request exceeded the limit of 10 internal redirects’ is closed to new replies.