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:22]
Lisa Clarke [Step 3. Verify]
litespeed_wiki:lisa-temp [2018/07/18 14:23] (current)
Lisa Clarke [Step 5. Check DB by Lookup Command]
Line 66: Line 66:
 ==== Step 4. Check Correct IP is Set ==== ==== Step 4. Check Correct IP is Set ====
  
-You can check source IP via LiteSpeed default php page ''​%%http://​yourdomain/​index.php?​act=phpinfo%%''​.  Check the ''​%%$_SERVER%%''​ variables, and look for the ones which begin with ''​%%GEOIP_%%''​. {{https://​openlitespeed.org/​wp-content/​uploads/​2018/​07/​geoenv.jpg?​533x235}} The environment variables are based on the default environment definitions.  The advanced section below shows you how to customize them for your environment to allow you to specify environment names, display language, additional databases, etc.+You can check source IP via LiteSpeed default php page ''​%%http://​yourdomain/​index.php?​act=phpinfo%%''​.  Check the ''​%%$_SERVER%%''​ variables, and look for the ones which begin with ''​%%GEOIP_%%''​. ​ 
 + 
 +{{https://​openlitespeed.org/​wp-content/​uploads/​2018/​07/​geoenv.jpg?​533x235}} 
 + 
 +The environment variables are based on the default environment definitions.  The advanced section below shows you how to customize them for your environment to allow you to specify environment names, display language, additional databases, etc.
  
 ==== Step 5. Check DB by Lookup Command ==== ==== Step 5. Check DB by Lookup Command ====
  
-A very useful MaxMind tool is downloaded and compiled with the source code release: ''​%%mmdblookup%%''​.  Use this tool to view an entry in the database for a specific IP. For example, to see the country name definition for the IP address 47.22.54.182 enter from a command prompt in the openlitespeed directory: ''​%%libmaxminddb/​bin/​mmdblookup --file /​usr/​local/​share/​GeoIP/​GeoLite2-Country.mmdb --ip 47.22.54.182 -v%%''​ The output is very detailed and can be informative as it shows you the information available in the database:+A very useful MaxMind tool is downloaded and compiled with the source code release: ''​%%mmdblookup%%''​.  Use this tool to view an entry in the database for a specific IP. For example, to see the country name definition for the IP address 47.22.54.182 enter from a command prompt in the openlitespeed directory: ​ 
 + 
 +''​%%libmaxminddb/​bin/​mmdblookup --file /​usr/​local/​share/​GeoIP/​GeoLite2-Country.mmdb --ip 47.22.54.182 -v%%'' ​ 
 + 
 +The output is very detailed and can be informative as it shows you the information available in the database:
  
 <​code>​ <​code>​
  • Admin
  • Last modified: 2018/07/18 14:22
  • by Lisa Clarke