Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:config:ip2location [2018/01/04 14:58] Lisa Clarke [Enabling GeoLocation] |
litespeed_wiki:config:ip2location [2018/01/04 15:02] Lisa Clarke [Log] |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code> cd /usr/local/lsws </code> | <code> cd /usr/local/lsws </code> | ||
- | Download and put IP2Location Database. You can use sample database from this address. | + | Download [[https://www.ip2location.com/developers#sample_ip2location_databases_bin|any sample database from IP2location]] and save to this directory. |
- | + | ||
- | https://www.ip2location.com/developers#sample_ip2location_databases_bin | + | |
==== Setup ==== | ==== Setup ==== | ||
Line 76: | Line 74: | ||
[REWRITE] Cond: Match 'NL' with pattern '^(DE)$', result: -1 | [REWRITE] Cond: Match 'NL' with pattern '^(DE)$', result: -1 | ||
</code> | </code> | ||
- | * ''2'' is match, ''-1'' is not match | + | |
+ | Note: ''2'' is a match, ''-1'' is not a match | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== |