nativeg Posted June 2, 2008 Posted June 2, 2008 I started getting the following error today on server 83. 406 Error (Not Acceptable) An appropriate representation of the requested resource could not be found on this server. This happened every time I hit the submit button on a small form I created several weeks ago. The form sent information to a PHP script that wrote the information into a small file on the server and also emailed me the information. Everything worked perfectly until I tested the system today. Here is what I found. The problem is with Apache mod_security that is turned on by default. I turned the Mod security off on my site using the following script in the public_html/.htaccess file. <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> I will need to go to several other sites I manage on TCH servers and see if they have the same problem. Is there anything I need to be concerned with about turning this filter off and if so, is there another work around, TCH would prefer me to use. Thanks.. Robert Quote
TCH-Bruce Posted June 2, 2008 Posted June 2, 2008 Yes, if you run into the problem with other sites you will have to do the same on those as well. Read up on mod_security. Quote
nativeg Posted June 2, 2008 Author Posted June 2, 2008 I am guessing that someone needed the mod_security feature on server 83 because I have not had this problem until the last day or two. Yes, if you run into the problem with other sites you will have to do the same on those as well. Read up on mod_security. Quote
TCH-Bruce Posted June 2, 2008 Posted June 2, 2008 All the servers now have mod_security on by default. Quote
nativeg Posted June 2, 2008 Author Posted June 2, 2008 That is strange because I have several forms on different websites on server 83 and I am not having the problem. Also, I have more sites on another server - I think 67 and there is not a problem with those sites either. How very strange... Robert All the servers now have mod_security on by default. Quote
TCH-Dick Posted June 2, 2008 Posted June 2, 2008 Open at ticket and we can see whats triggering mod_security. I could be anything from the file name to the content be submitted. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.