Jetpack 406 Error: Site Inaccessable
I was doing some troubleshooting on a separate problem and deactivated all of my plugins. I got that problem sorted out and reactivated all the non-problem causing plugins. When I went to reconnect jetpack to wordpress, it gave me a 406 Site Inaccessible error.
I went through and disabled all but jetpack again, that didn't work.
So other steps I took:
I looked at my .htaccess, pretty standard W3TC stuff and nothing else.
I checked http://jetpack.me/support/debug/?url=http://mmainsider.net it says it can't make an xml-rpc request.
I checked mmainsider.net/xmlrpc.php and it seems to be working just fine, I checked the source to be sure I didn't have an extra hidden line, I don't.
I went to jetpack support, it said to ask you guys.
I went through and disabled all but jetpack again, that didn't work.
So other steps I took:
I looked at my .htaccess, pretty standard W3TC stuff and nothing else.
I checked http://jetpack.me/support/debug/?url=http://mmainsider.net it says it can't make an xml-rpc request.
I checked mmainsider.net/xmlrpc.php and it seems to be working just fine, I checked the source to be sure I didn't have an extra hidden line, I don't.
I went to jetpack support, it said to ask you guys.
Pattern match "jetpack" at ARGS:for. [file "/usr/local/apache/conf/modsec-imh/40_wordpress.conf"] [line "26"] [id "13511"] [msg "Request for WordPress XML-RPC not from Jetpack API IP"]
I believe the issue that you're having is that because your website is using CloudFlare when a POST attempt comes from JetPack it looks like CloudFlare instead. So this rule might have to be updated to also allow CloudFlare IP ranges to make POST attempts for JetPack. Please let us know here publicly if getting this ModSecurity rule disabled on your VPS solves the problem so others will know to do the same thing if they stumble onto this question. - Jacob