Welcome! Log In Create A New Profile

Advanced

Re: nginx geoip module with reverse proxy in multi tenant

Sergey A. Osokin
March 27, 2021 09:20PM
On Sat, Mar 27, 2021 at 06:34:54AM -0400, blason wrote:
> Oh Ok -
>
> Thanks for the pointer and if my understanding is clear then define
> map $geoip_country_code $allowed_country_A
> map $geoip_country_code $allowed_country_B
> map $geoip_country_code $allowed_country_C
>
> under http section in /etc/nginx/nginx.conf

True. According to the documentation map directive is available
on http context, http://nginx.org/en/docs/http/ngx_http_map_module.html#map

> and then use
> if ($allowed_country_A = no) in server section?

According to the documentation if directive is available on server
or location contexts, http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if

--
Sergey A. Osokin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx geoip module with reverse proxy in multi tenant

blason March 26, 2021 11:47PM

Re: nginx geoip module with reverse proxy in multi tenant

Francis Daly March 27, 2021 05:56AM

Re: nginx geoip module with reverse proxy in multi tenant

blason March 27, 2021 06:34AM

Re: nginx geoip module with reverse proxy in multi tenant

Sergey A. Osokin March 27, 2021 09:20PM

Re: nginx geoip module with reverse proxy in multi tenant

blason March 27, 2021 11:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready