1 fredsy Jun 07, 2010 13:33
3 bushleaguecritic Jun 07, 2010 14:42
You're going to have to get your host to exclude certain portions of your site from certain mod_security rules for b2evo to work properly. It's kind of rude of your host to turn on mod_security with no warning or instructions.
You can try adding this to your .htaccess file: (requires mod_rewrite)
<LocationMatch "/blogs/.*">
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</LocationMatch>
Of course, you have to change the LocationMatch statement to reflect the location of your b2evo installation. But SecRuleEngine Off may not be allowed in .htaccess... I don't know.
If not you can try turning off the rules one-by-one until it works: (also in .htaccess)
<LocationMatch "/blogs/.*">
<IfModule mod_security2.c>
SecRuleRemoveById 950006
SecRuleRemoveById ...etc...
SecRuleRemoveById ...etc...
</IfModule>
</LocationMatch>
The "950006" is the id of the mod_sec rule that's currently blocking you, according to your host's log.
4 fredsy Jun 07, 2010 14:48
Thanks BushLeagueCritic, I'll try those and reply if they work/don't work.
It's kind of rude of your host to turn on mod_security with no warning or instructions.
Actually, if it's the host's problem then it's even more odd. I've been using the same b2evo version for probably a year or so now (been meaning to upgrade) and have not had any problems with mod_security until today. Furthermore, I have a number of sites hosted with them, all using b2evo (3.x for at least two of them) and had been working on those all day today. No problems at all.
5 fredsy Jun 07, 2010 15:17
Hmm, adding the first piece of code didn't work. However, in replacing the .htaccess file with my original (ie. removing the suggested code), it seems to have popped my site back into place.
If it doesn't hold, then I'll come back and try the other suggested code.
More info:
The firewall block occurs whilst I'm logged in. The page I see looks like what happens occasionally when the legacy skin is missing CSS (the admin toolbar isn't styled) and the rest of the page doesn't have any CSS showing at all. Unfortunately, just looking at this page kicks the firewall up, so I can't add more than that.
All my files have correct permissions.
The problem may be a particular page on my website:
http://www.puppetsinmelbourne.com.au/blog.php/2008/09/12/finger-puppet-pattern-now-on-sale
I've checked that skin's index/header files and nothing unusual turns up. The error logs however do show a 406 error for that url when I accessed it.