diff -Nur --no-dereference smeserver-mod_maxminddb-1.1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/79externalSSLAccessStringGeoip smeserver-mod_maxminddb-1.1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/79externalSSLAccessStringGeoip --- smeserver-mod_maxminddb-1.1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/79externalSSLAccessStringGeoip 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-mod_maxminddb-1.1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/79externalSSLAccessStringGeoip 2021-04-02 16:59:48.646000000 -0400 @@ -0,0 +1,15 @@ +{ + #--------------------------------------------------------------------- + # Grab ValidFromGeoIP access list property of httpd-admin + # SSL enabled virtual hosts should only allow access from IP's in + # this list, as well as local networks. + #--------------------------------------------------------------------- + + $OUT = ''; + + my $validFromGeoIP = ${'httpd-admin'}{'ValidFromGeoIP'}; + return unless defined $validFromGeoIP; + $validFromGeoIP =~ s/,/|/g; + $OUT .= " SetEnvIf MM_COUNTRY_CODE ^($validFromGeoIP) AllowCountries\n"; + $externalSSLAccess .= " env=AllowCountries"; +}