I was wondering if it's possible to configure GeoIP globally via the main httpd/apache.conf
I've inserted this code in apache.conf:
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
RewriteCond %{HTTP_USER_AGENT} !googlebot|Msnbot|Slurp|Teoma^$ [NC]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR)$
RewriteRule ^(.*)$ http://www.proxysites.net [L]
</IfModule>
And it doesn't seem to work.
The same code does work in .htaccess though.
This is on Cpanel which I'm not that familiar with, but I'm pretty sure it's inserted correctly.
Any ideas/suggestions?
Thanks,
-nux


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks