Have a dozen of vhosts which sometime require IP filtering (maintenance ...) using 'geo'. So - 'geo' is in http context, and gives a variable a value depending on the IP filters => that declaration is in an include file "Geo" - then have a 'error_page / location / rewrite / if / return' block => is in an include file "IP_filter" To activate filtering, "inby nginy - How to...