The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    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?
     
  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:
    0
    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.
     

Share This Page