Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:common:geoip-support [2019/04/17 15:05]
Lisa Clarke [Out of date database caused IP not blocked] Copyediting
litespeed_wiki:cache:common:geoip-support [2020/01/16 16:22]
Jackson Zhang
Line 1: Line 1:
 ====== GeoLocation support (GEOIP) for LiteSpeed Web Server ​ ====== ====== GeoLocation support (GEOIP) for LiteSpeed Web Server ​ ======
  
-LSCache supports GEOIP. ​+LSCache supports GEOIP, including MaxMind GeoIP2 database, MaxMind GeoIP Legacy Database and IP2Location DB.  MaxMind discontinued Legacy databases On January 2, 2019 hence we recommend not to use it anymore.
  
 For LSWS v5.2.x and earlier, only the MaxMind Legacy Database .dat is supported. As of LSWS v5.3RC2, LSWS supports the [[https://​www.maxmind.com/​en/​geoip2-databases|MaxMind GeoIP2 format database]], ''​.mmdb''​. The database path configuration is in the same location as the legacy DB (**Configuration > Server > General > General settings > IP to GeoLocation DB**), then set the database path to either ''​.dat''​ or ''​.mmdb''​. For LSWS v5.2.x and earlier, only the MaxMind Legacy Database .dat is supported. As of LSWS v5.3RC2, LSWS supports the [[https://​www.maxmind.com/​en/​geoip2-databases|MaxMind GeoIP2 format database]], ''​.mmdb''​. The database path configuration is in the same location as the legacy DB (**Configuration > Server > General > General settings > IP to GeoLocation DB**), then set the database path to either ''​.dat''​ or ''​.mmdb''​.
Line 89: Line 89:
 You can add the following: ​ You can add the following: ​
   GEOIP_REGION_NAME CITY_DB/​subdivisions/​0/​names/​en   GEOIP_REGION_NAME CITY_DB/​subdivisions/​0/​names/​en
-Please make sure the correct entry name is used. For example, the following is incorrect. ​+Please make sure the correct entry name is used. For example, the following is incorrect: ''​name''​ should be ''​names''​.
   GEOIP_REGION_NAME CITY_DB/​subdivisions/​0/​name/​en   GEOIP_REGION_NAME CITY_DB/​subdivisions/​0/​name/​en
  
Line 149: Line 149:
  
 It may return the database path as <​code>/​usr/​share/​GeoIP/​GeoIP.dat</​code> ​ It may return the database path as <​code>/​usr/​share/​GeoIP/​GeoIP.dat</​code> ​
- 
-Alternatively,​ you can just download the database yourself directly. ​ 
  
 **NOTE**: On January 2, 2019, MaxMind discontinued the GeoLite Legacy databases. GeoLite Legacy databases are no longer available for download. ​ **NOTE**: On January 2, 2019, MaxMind discontinued the GeoLite Legacy databases. GeoLite Legacy databases are no longer available for download. ​
  • Admin
  • Last modified: 2020/11/14 15:24
  • by Lisa Clarke