MaxRedirects in error log
I have a ton of these in my error log (seriously, 1,017 in the last 24 hours):
But how can I find where MaxRedirects is still set? The error doesn't give me any clues... no path, no IP that I can trace down, nothing. I don't find it in httpd.conf or under WHM > Service Configuration > Apache Configuration > Global Configuration. I'm using WHM v78.0.41 because I'm not ready to update MySQL, and I'm going to have to move to a new server in the near future to update from CentOS 6 to CentOS 7. I have a ton of clients created, though, so it could potentially be in someone's .htaccess.
[Fri Nov 08 20:27:32.252163 2019] [rewrite:warn] [pid 23682] AH00664: RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursion directive and will be ignored.But how can I find where MaxRedirects is still set? The error doesn't give me any clues... no path, no IP that I can trace down, nothing. I don't find it in httpd.conf or under WHM > Service Configuration > Apache Configuration > Global Configuration. I'm using WHM v78.0.41 because I'm not ready to update MySQL, and I'm going to have to move to a new server in the near future to update from CentOS 6 to CentOS 7. I have a ton of clients created, though, so it could potentially be in someone's .htaccess.
-
This is more than likely set in one of your user's .htaccess in the RewriteCond/RewriteRules 0 -
Any suggestions on a way to track down which one(s)? I have 93 accounts under /home/, and there could be an .htaccess under any of their subdirectories. I'm guessing that I could use grep, something like this: grep -rni --include=".htaccess" "maxredirects" /home/
I don't do a lot of command line coding, though, so I'm not super comfortable with it. I'm also concerned with it slowing down the server and making higher traffic sites non-responsive while waiting on it to complete.0 -
That grep would work, though if you h ave a lot of accounts its most likely going to take some time. You could specify a group of accounts at a time - like /home/a* 0
Please sign in to leave a comment.
Comments
3 comments