Mar 15 2007

406 Error (Not Acceptable) An appropriate representation of the requested resource could not be found on this server


Categories:

406 Error (Not Acceptable)

Are you seeing this error when trying to access a page? This is due to Apache mod_security that is turned on by default. While you can use the following to diagnose the problem (turning the filter off should resolve the issue):

SecFilterEngine off

It's important to leave the filter on as it helps prevent spam and injection attacks. What you need to do is figure out (ask your hosting provider if you need help) the phrases that are triggering the filter. Typically these will include phrases that include possible commands such as "ftp," "telnet," "ssh," etc. Once you know which ones are, you can modify the filter to permit the page that is not loading (scan your logs or Google sitemap for 406 errors to find all the pages experiencing this problem):

SecFilterEngine On
SecFilterSelective "POST_PAYLOAD" "allow these words" "allow,nolog"

Average: 4.4 (10 votes)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

Can you tell more about SecFilterEngine On..

i wanna use this "SecFilterEngine on" but still cannot loading the pages correctly.. is there any code to solve this problems? I mean use "SecFilterEngine On" but can load any webpages correctly?

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

Captcha
This question is used to make sure you are a human visitor and to prevent spam submissions.
Copy the characters (respecting upper/lower case) from the image.