Troubleshooting » 'Not Acceptable' Error Message

Very occasionally, you may get an error message of the following format when you attempt to log into Pixaria on some servers:

Not Acceptable
An appropriate representation of the requested resource /index.login.php
could not be found on this server.

This message may also have a number associated with it (HTTP/1.1 Error Message 406 Not Acceptable)

Why it happens

If you get this error message, it's likely that the Apache module Mod_Security is to blame for the problem. The message usually appears when the Mod_Security system detects an HTTP request which it perceives as a threat or as otherwise dangerous.

I've not been able to find any detailed information about how this error message can be programmatically removed from Pixaria Gallery but the problem is known to occur in numerous other web based applications including WordPress, Menalto Gallery and PHPBB 2.

How to resolve this issue

The only fix at the present time seems to be to place a .htaccess file in the root directory of your Pixaria installation containing the following code:

# Turn off
IndexIgnore */*

<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

To implement the fix, paste the code above into a blank text file and save it on your server as a file named .htaccess.

Please Note

Before you do this, be sure there isn't an existing file named .htaccess in this location as some FTP programs hide files whose names begin with a period/full stop.


Last edited on Thursday February 18 2010 at 13:47:06