Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cache:lscache:geoip-support [2016/03/04 21:17] Jackson Zhang |
litespeed_wiki:cache:lscache:geoip-support [2016/03/23 19:58] Michael Alegre removed |
||
---|---|---|---|
Line 11: | Line 11: | ||
For CentOS user: | For CentOS user: | ||
yum install Geoip-data | yum install Geoip-data | ||
+ | or | ||
+ | yum install GeoIP-GeoLite-data | ||
+ | | ||
Also check the installation location | Also check the installation location | ||
rpm -ql Geoip-data | rpm -ql Geoip-data | ||
+ | or | ||
+ | rpm -ql GeoIP-GeoLite-data | ||
+ | | ||
It may return database path as: | It may return database path as: | ||
/usr/share/GeoIP/GeoIP.dat | /usr/share/GeoIP/GeoIP.dat | ||
- | In LSWS Admin Console, configure the database location. General ->General settings:-> IP to GeoLocation DB ( enter the database path ). | + | In LSWS Admin Console, configure the database location. General ->General settings:-> [[https://www.litespeedtech.com/docs/webserver/config/general#geolocationDB|IP to GeoLocation DB]] ( enter the database path ). |
3. Install other modules: | 3. Install other modules: | ||
Line 32: | Line 38: | ||
</IfModule> | </IfModule> | ||
- | You can add rewrite condition for more specific rules, such as UK, EU and US + rest of the world show different contents, or show different currencies. | + | You can add rewrite condition for more specific rules, such as UK, EU and US + rest of the world show different contents, or show different currencies. |
+ | |||
+ | You can also refer to [[http://dev.maxmind.com/geoip/legacy/mod_geoip2/#Redirecting_a_client_based_on_country|Maxmind]] page for rewrite examples. |