summaryrefslogtreecommitdiff
path: root/network/mod_geoip2/mod_geoip.conf
diff options
context:
space:
mode:
Diffstat (limited to 'network/mod_geoip2/mod_geoip.conf')
-rw-r--r--network/mod_geoip2/mod_geoip.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_geoip2/mod_geoip.conf b/network/mod_geoip2/mod_geoip.conf
new file mode 100644
index 0000000000..770ff55d30
--- /dev/null
+++ b/network/mod_geoip2/mod_geoip.conf
@@ -0,0 +1,15 @@
+# Apache configuration for mod_geoip2
+
+LoadModule geoip_module @baselibdir@/httpd/modules/mod_geoip.so
+
+<IfModule mod_geoip.c>
+ GeoIPEnable Off
+ GeoIPEnableUTF8 On
+ GeoIPOutput Env
+ GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache
+</IfModule>
+
+# GeoIP information is available only inside /xxx
+<Location /xxx>
+ GeoIPEnable On
+</Location>