Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: Geoip redirect but exclude a specific directory
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
st1905
November 23, 2010 12:27PM
Registered: 14 years ago
Posts: 38
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
Reply
Quote
RSS
Subject
Author
Posted
Geoip redirect but exclude a specific directory
st1905
November 22, 2010 03:34PM
Re: Geoip redirect but exclude a specific directory
Maxim Dounin
November 22, 2010 04:52PM
Re: Geoip redirect but exclude a specific directory
st1905
November 23, 2010 12:27PM
Re: Geoip redirect but exclude a specific directory
Rainer Duffner
November 23, 2010 01:30PM
Re: Geoip redirect but exclude a specific directory
st1905
November 23, 2010 01:49PM
Re: Geoip redirect but exclude a specific directory
st1905
November 24, 2010 07:49AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018