Installing Nginx Pagespeed Module
PageSpeed is a technology from Google, designed to help a website’s performance optimizations. Faster websites offer a better user experience, boost rankings in Google and increase conversion rates. Pagespeed lets you measure and (automatically) optimize your web pages and comply with web performance best practices. Speed up your web site and boost web performance! Assume…
How to remove server header in Nginx
Nginx is one of the world most famous web server as per market share, security always a main concert when come to the web server and web application. By default, Nginx will always send the information in server HTTP header as well as on the error page. It’s always the best practise to hide up…
How to automate IP2Location BIN database download in Linux
IP2Location is one of the top IP database provider in the world as their database is being updated every 1st day of the month, in order to make use the latest database to keep data up to date, we may need to download, extract and import the database to our system. Thanks for the automation…
Updating AWS CloudFront IP to Nginx
CloudFront become a very common CDN/Reverse proxy nowadays because of their high availability and easy to use. So if you place a CloudFront as a proxy server in front of your Nginx web server, than the Nginx web server not able to get the real customer IP address. Same thing will happen if you using…
Nginx: Too Many Open Files Error And Solution
Recently when I check on one of my website, which frequently getting the error 500 when number of user start to increase. Check out the Nginx log and found the following error: 2019/04/26 13:24:16 [crit] 21974#0: *3188937 open() “/usr/local/nginx/html/50x.html” failed (24: Too many open files), client: , request: “GET /file/images/background.jpg…
Country blocking using Nginx with IP2Location Module
After few days of trying, trying and trying, finally find out the way to compile the IP2Location module into the Nginx in Ubuntu server. I try to compare multiple way of doing the country block with Nginx, where in my previous post, the country blocking is done with GeoIP module…
Country blocking using Nginx with GeoIP2 in Ubuntu 16.04
After try out the country block with multiple module, including the previous Nginx http_geoip_module, until I manage to figure it out and make it work, than only I found out that GeoIP version 1 will be stop update soon by Maxmind company, where they encourage developer to move to the…
Blocking country with Nginx without GeoIP module
There are always many solution to solve a single problem, if you prefer to use the Nginx GeoIP module, you may refer back to the previous post on the detail and step. In this article, I will share on how to do the blocking of country without the plugin module.…
Diable default vhost in Nginx web server
When hosting a website in Nginx, the Nginx server will serve all the page to port 80 by default, in order to disable this features, you may create a default site which bind to the IP at port 80 and redirect it to the error page, which mean that’s no…
Country blocking using Nginx GeoIP in Ubuntu 16.04
In the following article, I will share on how to install the GeoIP module on Nginx and how to write the code in Nginx to block the visitor from certain country. There are many way to block the customer from certain country to access your website if you are not…