Tried
location ~ ^/admin/.+\.php$ {
fastcgi_pass 127.0.0.1:9000;
root /var/www/vhosts/domain.com/httpdocs;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
break;
}
if ($mygeo = "1") {
break;
}
if ($geoip_country_code = "DE") {
rewrite ^(.*)$ http://de.domain.com permanent;
}
Still someone with ip from germany cant access the admin section, what i`m doing wrong here ?
Thanks.
http://www.somerorbay.com