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:lisa-temp [2018/07/18 14:21]
Lisa Clarke [Step 2. Setup]
litespeed_wiki:lisa-temp [2018/07/18 14:22]
Lisa Clarke [Step 3. Verify]
Line 22: Line 22:
 {{https://​openlitespeed.org/​wp-content/​uploads/​2018/​07/​iptogeo_config-2.jpg?​805x397}} ​ {{https://​openlitespeed.org/​wp-content/​uploads/​2018/​07/​iptogeo_config-2.jpg?​805x397}} ​
  
-Similarly, add the city database by specifying **DB File Path:** ''​%%/​usr/​local/​share/​GeoIP/​GeoLite2-City.mmdb%%''​ and **DB Name:** to: ''​%%CITY_DB%%''​ Navigate to **Web Admin > Configurations > Your Virtual Hosts > Rewrite** to add rewrite rules that will control the redirect:+Similarly, add the city database by specifying **DB File Path:** ''​%%/​usr/​local/​share/​GeoIP/​GeoLite2-City.mmdb%%''​ and **DB Name:** to: ''​%%CITY_DB%%'' ​ 
 + 
 +Navigate to **Web Admin > Configurations > Your Virtual Hosts > Rewrite** to add rewrite rules that will control the redirect:
  
 <​code>​ <​code>​
Line 30: Line 32:
 </​IfModule>​ </​IfModule>​
 </​code>​ </​code>​
 +
 Refer to [[http://​dev.maxmind.com/​geoip/​legacy/​mod_geoip2/#​Redirecting_a_client_based_on_country|Maxmind]] for more rewrite examples. Refer to [[http://​dev.maxmind.com/​geoip/​legacy/​mod_geoip2/#​Redirecting_a_client_based_on_country|Maxmind]] for more rewrite examples.
  
Line 38: Line 41:
 == Method 1: == == Method 1: ==
  
-From [[https://​hide.me/​en/​proxy|This site]], we can simply put in a web IP and choose a country from three(USA, Germany, Netherlands). If you want more than three countries, then you need to register for a paid plan. {{https://​openlitespeed.org/​wp-content/​uploads/​2018/​06/​Geo-3.png?​887x381}}+From [[https://​hide.me/​en/​proxy|This site]], we can simply put in a web IP and choose a country from three(USA, Germany, Netherlands). If you want more than three countries, then you need to register for a paid plan.  
 + 
 +{{https://​openlitespeed.org/​wp-content/​uploads/​2018/​06/​Geo-3.png?​887x381}}
  
 == Method 2: == == Method 2: ==
  
-You can choose a free proxy server from online free resources, e.g. [[https://​free-proxy-list.net/​|Free_Proxy]] {{https://​openlitespeed.org/​wp-content/​uploads/​2018/​06/​Geo-1.png?​1011x484}} Setup the proxy IP with your browser. Here are the steps for Chrome:+You can choose a free proxy server from online free resources, e.g. [[https://​free-proxy-list.net/​|Free_Proxy]] ​ 
 +{{https://​openlitespeed.org/​wp-content/​uploads/​2018/​06/​Geo-1.png?​1011x484}} 
 + 
 +Setup the proxy IP with your browser. Here are the steps for Chrome:
  
   - Click on **Settings**.   - Click on **Settings**.
  • Admin
  • Last modified: 2018/07/18 14:23
  • by Lisa Clarke