workaround for "406 Not Acceptable" error
|Posted: Thu, 2006-04-06 13:01|
Just in case anyone else runs into the same problem...
I have a customer domain which uses a Menalto Gallery 1.5 application.
Everything has been working fine, the customer has been happily uploading images, editing captions, etc.
But one of his latest image uploads has been having a problem. The Gallery application uploads the image fine, creates an appropriately sized thumbnail, and one can edit any of the text associated with the image. But if one tries to click on the thumbnail and bring up the full sized image within the application, it fails with the "406 Not Acceptable" error, and the onscreen message:
An appropriate representation of the requested resource
Apache/1.3.34 Server at example.net Port 80
I checked that the image file existed, it had the correct permissions, etc.
I deleted the image and uploaded it with a slightly different name... Still no go.
So I googled the error message and found some hits indicating that it might be a false positive from Mod_Security
So I put the following code in the customer's .htaccess file:
# The below probably isn't needed...
And, sure enough, the problem went away.
Gallery URL: http://cahaly.net/gallery