Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...