Error 406 - Not Acceptable


opnchaudhary
Asked:
2013-08-30 1:58 pm EST

Hits: 980
I want to Acces js/jquery.cookie.js in my website and I get error:

An error has occurred. Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.

I can't see an option to disable mod_security from cPanel.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

I have tried http://www.inmotionhosting.com/support/website/modsecurity/find-and-disable-specific-modsecurity-rules . I can do the first step and second one. I can see similar kind of results for the jquery.cookie.js file. But can't disable it, as the 3 command says no such file or directory.
opnchaudhary
8 Points
2013-08-30 02:14 pm EST
Hello opnchaudhary,

When following step 3 on those instructions, did you also read and follow this part?

Note that when we use >> this is going to append the rule to our ModSecurity configuration file, so we don't overwrite any previous rules we've allowed as well. If you don't already have your ModSecurity configuration file included in your Apache configuration, be sure to follow my guide on how to enable ModSecurity include and create a configuration file which covers this.

It's also important to remember you can't have the SecRuleEngine Off rule still in your ModSecurity configuration file if you're just disabling specific rules, as it will completely turn off ModSecurity.


What's the domain name you're having these issues with?

- Jacob
JacobIMH
9,521 Points
2013-08-30 02:19 pm EST

OTHER ANSWERS

0

JacobIMH
Staff
9,521 Points
2013-08-30 2:17 pm EST
Hello opnchaudhary,

I was unable to locate an account with the email address you've submitted this question under, so I couldn't fix this for you.

You should be able to disable ModSecurity via the ModSec manager in cPanel if you're on a shared hosting account. Or you can find and disable specific ModSecurity rules if you're on a VPS or dedicated server with root access.

Please let us know if you still had any further questions at all.

- Jacob

You must login before you can post a comment about this answer.

I read the note too. Anyways, I have got it fixed now by support. Thanks.
opnchaudhary
8 Points
2013-08-30 3:05 pm EST
Hello opnchaudhary,

Ok great, glad to hear you got it resolved!

- Jacob
JacobIMH
9,521 Points
Staff
2013-08-30 3:15 pm EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!