Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mod_authz_host

Discussion in 'EasyApache' started by GTMAN, Mar 5, 2013.

  1. GTMAN

    GTMAN Member

    Joined:
    Mar 5, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I believe mod_authz_host is a default module in EasyApache. I'm trying to deny access to ip's in my htaccess file but it's not working. How do I confirm that mod_authz_host is compiled and active?

    Cheers

    Glenn Tate
    Toronto
     
  2. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    143
    Hi,

    Here's a quick check:

    And an example .htaccess entry:

    Which version of Apache are you using? Can you post an example of something that isn't working for you?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GTMAN

    GTMAN Member

    Joined:
    Mar 5, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Server Version: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_bwlimited/1.4

    root@vps [~]# httpd -M|grep authz_host
    authz_host_module (static)
    Syntax OK
    root@vps [~]#

    I'm trying this in my htaccess to limit access to only the USA and Canada (truncated of course).

    #COUNTRY_BLOCK_START
    <Limit GET HEAD POST>
    order deny,allow
    allow from 4.17.143.0/28
     
  4. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    143
    It might be worth filing a support case on this (see my signature for a link), as it certainly looks like the module is loaded, and the syntax looks ok. I'm guessing the directive is being overridden (or possibly ignored) due to an overlapping config somewhere, but I wouldn't know for sure without looking into it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice