How to enable dynamic module with an existing NGINX installation

I had the same question, and @vladiastudillo answer was the missing piece I needed. First add the nginx stable repo: sudo add-apt-repository ppa:nginx/stable Then run apt update: sudo apt-get update And get the nginx geoip module: sudo apt-get install nginx-module-geoip This will download and load the module to /usr/lib/nginx/modules To load the nginx module, open … Read more

Get Country of IP Address with PHP [duplicate]

There are free, easy APIs you can use, like those: http://ipinfodb.com/ip_location_api.php http://www.ipgeo.com/api/ http://ip2.cc/ http://www.geobytes.com/IpLocator.htm https://iplocate.io/ and plenty others. Which one looks the most trustworthy is up to you 🙂 Otherwise, there are scripts which are based on local databases on your server. The database data needs to be updated regularly, though. Check out this one: … Read more