• Resolved shapeschicken

    (@shapeschicken)


    Hello,

    We have Nginx FastCGI Cache enabled, running php 8.

    This works great, sites super fast but when we have this plugin turned on, every now and again the site goes down for a few hours with a 301 redirect loop.

    We nailed down the issue to this plugin.

    Do you know what may be causing this? It is an intermittent issue, but when it happens, the site goes down for hours, then will work for hours etc.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Godley

    (@johnny5)

    How did you nail the issue down to this plugin? This doesn’t sound like something it would do.

    Redirection only does what you tell it to do, so if you’ve created a redirect loop it will create a loop. As such, you should look through your redirects.

    .

    Plugin Author John Godley

    (@johnny5)

    Sure, Redirection does redirects so it’s likely to be doing this redirect. What I mean is, how did you nail it down to Nginx fastcgi cache?

    As I mentioned above, if you’ve created a redirect loop then it will do as you tell it. You should look at your redirects and see if any could be causing a loop. This will probably be a regular expression.

    Thread Starter shapeschicken

    (@shapeschicken)

    We had FastCGI Cache enabled for some time and then we started getting 301 redirect loops.

    To fix it, we troubleshooted and turned off the cache and the redirect loop was gone.

    We then disabled plugins that we thought could cause this issue, and begun enabling them one by one.

    Turning on the redirect plugin would cause this error.

    Plugin Author John Godley

    (@johnny5)

    Ok, have you looked at your redirects to see if any are causing a loop? As described above, it will only do what you tell it to do. If you’ve created a loop then it will perform that loop.

    I don’t know how your cache is involved but it’s worth running a looped redirect through https://redirect.li/http/ to see what is happening.

    Plugin Author John Godley

    (@johnny5)

    Based on the intermittent nature of the problem is seems something more caused by your cache?

    Thread Starter shapeschicken

    (@shapeschicken)

    Yup, but the issue only exists when this plugin is activated.

    And seeing how its a redirect loop, i suspect something isnt playing nicely. Regardless to resolve it, we will just move the redirects into nginx

    Plugin Author John Godley

    (@johnny5)

    Sure, because the plugin is causing a redirect. The same could be said with the cache enabled. However, this is not normal behaviour and there are no other reports of a similar problem. I’m pretty sure more than one site is using caching in this way.

    Have you actually looked at your redirects to see if there is a loop? I’ve asked a couple of times and I’m not sure if you’ve looked. This seems the most likely cause.

    Have you checked a loop with https://redirect.li/ to see what details it shows?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘NGINX FastCGI Cache 301 issues’ is closed to new replies.