Geoip redirect but exclude a specific directory
Maxim Dounin
mdounin at mdounin.ru
Tue Nov 23 00:48:31 MSK 2010
Hello!
On Mon, Nov 22, 2010 at 03:34:27PM -0500, st1905 wrote:
[...]
> Problem is the administrator of the site is from one of the countries
> that gets redirected so he cant access the administration section of the
> site instead he gets redirected to another place.
>
> How can i exclude the directory "admin" from the above geoip redirection
> ?
location / {
...do whatever you want here...
}
location /admin/ {
...do whatever you want here...
}
See here for more details:
http://wiki.nginx.org/HttpCoreModule#location
Maxim Dounin
More information about the nginx
mailing list