Geoip redirect but exclude a specific directory

Maxim Dounin mdounin at
Tue Nov 23 00:48:31 MSK 2010


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 / { whatever you want here...

location /admin/ { whatever you want here...

See here for more details:

Maxim Dounin

More information about the nginx mailing list