Forums

[resolved] Can't Add Catagories: mod_security related: Content-Type Header (2 posts)

  1. Explodicide
    Member
    Posted 3 years ago #

    I'm running a vded server through GoDaddy, and I've managed to modify my mod_security rules to accommodate most of the things that WordPress needs to run properly, until this issue.

    Whenever I try to add a catagory through any interface in the blog I get this error in my httpd_error_log

    [Mon Jan 12 09:30:24 2009] [error] [client <MY IP>] mod_security: Access denied with code 406. Pattern match "!(^$|^application/x-www-form-urlencoded$|^multipart/form-data|text/xml)" at HEADER("Content-Type") [severity "EMERGENCY"]

    This means that the Content-Type that is being requested is not matching any of the acceptable values in the security rule. Does anyone know what the Content-Type of this request is? It will be cake to add it to my ruleset once I know what it's looking for.

  2. Explodicide
    Member
    Posted 3 years ago #

    Ok, I figured it out. I took a look at the Apache docs, found where in the logs you can specify to show Content-Type, used that to find the content type of the request, and got it fixed.

    In case anyone is curious about how to make your server play nice with WordPress and still have the security modules working, here's a post I wrote detailing the issue.

Topic Closed

This topic has been closed to new replies.

About this Topic