From 8d38523ae66ac1297eb66699aa6783377da2d714 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Sun, 7 Apr 2024 11:10:31 +1200 Subject: [PATCH] Update --- content/posts/nginx_geo_block.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/posts/nginx_geo_block.md b/content/posts/nginx_geo_block.md index abf2483..c3d6a06 100644 --- a/content/posts/nginx_geo_block.md +++ b/content/posts/nginx_geo_block.md @@ -11,10 +11,9 @@ Install required packages & add to nginx config. The GeoIP DB will be under /usr/shared/GeoIP/GeoIPv6.dat (Or GeoIP.dat for v4 only): ```shell apt install -y libnginx-mod-http-geoip geoip-database -echo 'geoip_country /usr/share/GeoIP/GeoIP.dat;' > /etc/nginx/conf.d/geoip.conf +echo 'geoip_country /usr/share/GeoIP/GeoIPv6.dat;' > /etc/nginx/conf.d/geoip.conf ``` - Add this block under the main "http" block in nginx.conf: ```shell # /etc/nginx/nginx.conf