{
  $OUT ="   # Mod_maxminddb\n";
  return "   #disabled\n" unless ( ($modMaxminddb{'status'}||'disabled') eq 'enabled' ||  defined (${'httpd-admin'}{'ValidFromGeoIP'}) );
  $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ?  'yes' : 'no';
 if (($haveSSL eq 'yes') && ($port eq $httpsPort) ) {
 $OUT .="   <Location /server-manager>
        Require ip $localAccess $externalSSLAccess
        Require env AllowCountries
   </Location>\n" if (-d "/etc/e-smith/web/panels/manager/" && (${'httpd-admin'}{'GeoIPManager'} || 'enabled' ) eq 'enabled' );
 $OUT .="   <Location /server-common>
        Require ip $localAccess $externalSSLAccess
        Require env AllowCountries
   </Location>\n" if ( (${'httpd-admin'}{'GeoIPManager'} || 'enabled' ) eq 'enabled' || (${'httpd-admin'}{'GeoIPUser'} || 'enabled' ) eq 'enabled' || (${'httpd-admin'}{'GeoIPPassword'} || 'enabled' ) eq 'enabled') ;
 $OUT .="   <Location /user-manager>
        Require ip $localAccess $externalSSLAccess
        Require env AllowCountries
   </Location>\n" if (-d "/etc/e-smith/web/panels/user/" && (${'httpd-admin'}{'GeoIPUser'} || 'enabled' ) eq 'enabled' );
 $OUT .="   <Location /user-password>
        Require ip $localAccess $externalSSLAccess
        Require env AllowCountries
   </Location>\n" if (-d "/etc/e-smith/web/panels/password/" && (${'httpd-admin'}{'GeoIPPassword'} || 'enabled' ) eq 'enabled' );
 }
}
