... | @@ -74,9 +74,22 @@ http { |
... | @@ -74,9 +74,22 @@ http { |
|
|
|
|
|
...
|
|
...
|
|
|
|
|
|
geoip_country /usr/share/GeoIP/GeoIP.dat;
|
|
geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
|
|
geoip_city /usr/share/GeoIP/GeoLiteCity.dat;
|
|
auto_reload 5m;
|
|
|
|
$geoip2_metadata_country_build metadata build_epoch;
|
|
|
|
$geoip2_data_country_code default=US country iso_code;
|
|
|
|
$geoip2_data_country_name country names en;
|
|
|
|
}
|
|
|
|
|
|
|
|
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
|
|
|
|
$geoip2_data_city_name default=London city names en;
|
|
|
|
$geoip2_data_city_country_code country iso_code;
|
|
|
|
$geoip2_data_city_country_name country names en;
|
|
|
|
$geoip2_data_location_longitude location longitude;
|
|
|
|
$geoip2_data_location_latitude location latitude;
|
|
|
|
$geoip2_data_continent_code continent code;
|
|
|
|
$geoip2_data_postal_code postal code;
|
|
|
|
}
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
... | @@ -87,25 +100,22 @@ Folgender Inhalt kann in die Datei `/var/www/html/etc/nginx/conf.d/php.include` |
... | @@ -87,25 +100,22 @@ Folgender Inhalt kann in die Datei `/var/www/html/etc/nginx/conf.d/php.include` |
|
|
|
|
|
```
|
|
```
|
|
### SET GEOIP Variables ###
|
|
### SET GEOIP Variables ###
|
|
fastcgi_param GEOIP_COUNTRY_CODE $geoip_country_code;
|
|
fastcgi_param GEOIP_COUNTRY_CODE $geoip2_data_country_code;
|
|
fastcgi_param GEOIP_COUNTRY_CODE3 $geoip_country_code3;
|
|
fastcgi_param GEOIP_COUNTRY_NAME $geoip2_data_country_name;
|
|
fastcgi_param GEOIP_COUNTRY_NAME $geoip_country_name;
|
|
fastcgi_param GEOIP_CITY_COUNTRY_CODE $geoip2_data_city_country_code;
|
|
|
|
fastcgi_param GEOIP_CITY_COUNTRY_NAME $geoip2_data_city_country_name;
|
|
fastcgi_param GEOIP_CITY_COUNTRY_CODE $geoip_city_country_code;
|
|
fastcgi_param GEOIP_CITY $geoip2_data_city_name;
|
|
fastcgi_param GEOIP_CITY_COUNTRY_CODE3 $geoip_city_country_code3;
|
|
fastcgi_param GEOIP_POSTAL_CODE $geoip2_data_postal_code;
|
|
fastcgi_param GEOIP_CITY_COUNTRY_NAME $geoip_city_country_name;
|
|
fastcgi_param GEOIP_CITY_CONTINENT_CODE $geoip2_data_continent_code;
|
|
fastcgi_param GEOIP_REGION $geoip_region;
|
|
fastcgi_param GEOIP_LATITUDE $geoip2_data_location_longitude;
|
|
fastcgi_param GEOIP_CITY $geoip_city;
|
|
fastcgi_param GEOIP_LONGITUDE $geoip2_data_postal_code;
|
|
fastcgi_param GEOIP_POSTAL_CODE $geoip_postal_code;
|
|
|
|
fastcgi_param GEOIP_CITY_CONTINENT_CODE $geoip_city_continent_code;
|
|
|
|
fastcgi_param GEOIP_LATITUDE $geoip_latitude;
|
|
|
|
fastcgi_param GEOIP_LONGITUDE $geoip_longitude;
|
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
Hier https://dev.quiqqer.com/quiqqer/quiqqer/snippets/84 ist ein Snippet für ein GeoIp Cron Update Script zu finden
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### GeoIP datenbanken
|
|
|
|
Die Datenbanken für GEO IP können über folgendes Tool bezogen und geupdated werden:
|
|
|
|
https://dev.maxmind.com/geoip/geoipupdate/
|
|
|
|
|
|
|
|
|
|
***
|
|
***
|
... | | ... | |