Results 1 to 6 of 6

Thread: Access denied with code 406 (phase 2)

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Exclamation Access denied with code 406 (phase 2)

    Hello
    in the mod security i have this error on the same site every min so i can't read the reset of the mod log

    this the error i hope you can help me

    Access denied with code 406 (phase 2). Pattern match "Windows-Update-Agent" at REQUEST_HEADERS:User-Agent. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "247"]
    Last edited by Ammar AbuQoura; 08-22-2012 at 09:36 AM.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,070
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Access denied with code 406 (phase 2)

    [file "/usr/local/apache/conf/modsec2.user.conf"] [line "247"]
    Has this file been customized?

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Access denied with code 406 (phase 2)

    as i know no it's not customized but i'm not sure

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,070
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Access denied with code 406 (phase 2)

    That file (modsec2.user.conf) on my servers is no where near 247 lines and is why I asked. You could track down that line and remark it out or remove it, or use a tool like this to allow the user agent for one site if you needed to: ConfigServer ModSecurity Control

    This isn't an error specifically I don't think, mod_security is doing what its supposed to do. What problem are you having here? Not sure by your first post, TBH.

  5. #5
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Access denied with code 406 (phase 2)

    i don't have any problem with the site (static site) but this line is almost every where in the mod log and it's annoying me

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,070
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Access denied with code 406 (phase 2)

    Assuming you use CSF you might want to tweak your settings a bit to perm block repeated rule triggers.

    #[*]Enable failure detection of repeated Apache mod_security rule triggers

    LF_MODSEC_PERM

Similar Threads

  1. Replies: 3
    Last Post: 07-04-2012, 05:41 PM
  2. mode security code 406 error
    By k-planethost in forum Optimization
    Replies: 2
    Last Post: 03-29-2011, 10:25 AM
  3. Replies: 3
    Last Post: 02-05-2011, 11:51 PM
  4. Replies: 1
    Last Post: 05-21-2010, 01:37 PM
  5. Access denied by access control list
    By trout21 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 10-15-2004, 08:36 AM