Can we redirect users based on their location in nginx_apache?

Mr-Pro

Verified User
Joined
Dec 19, 2017
Messages
30
Hello guys ,
I have a domain named generaldomain.com . I want to redirect Visitors from Germany to dedomain.com and Visitors from France to frdomain.com . Can I do that ? I'm using directadmin + nginx_apache webserver .
Regards ,
 
I have configured nginx with geoip module but it seems the database is not updated anymore ! I used this to install geoip :

cd /usr/local/directadmin/custombuild
mkdir -p custom/nginx_reverse
cp -p configure/nginx_reverse/configure.nginx custom/nginx_reverse/configure.nginx
perl -pi -e 's#"--group=nginx" \\#"--group=nginx" \\\n\t"--with-http_geoip_module" \\#' custom/nginx_reverse/configure.nginx
./build nginx

how can I install geoip2 for nginx? or maybe where can I get an updated GEOIP.DAT file?
 
Back
Top