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_geoip optmod loaded but not working

Discussion in 'General Discussion' started by Mark65, Jul 28, 2009.

  1. Mark65

    Mark65 Registered

    Joined:
    Jul 28, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am facing the situation that mod_geoip optmod is loaded but not working, similar as in the thread http://forums.cpanel.net/f5/mod_geoip-optmod-loaded-but-not-working-114725.html

    I have tried and inserted in httpd.conf:
    GeoIPEnable On
    GeoIPDBFile "/opt/geoip/share/GeoIP/GeoIP.dat"

    but then Apache wouldn't start. Did I place wrong???
    I try to forward traffic using .htaccess like

    RewriteEngine On
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|TW|HK|SA|IR|NG)$
    RewriteRule ^(.*)$ Alert Pay Hub [L]



    Any help is much appreciated. Thanks!
    Mark
     

Share This Page