In many scenarios, we may not want a particular page or directory to be accessed by unauthorized users or crawled by bots. Nginx provides an option to restrict access to specific directories using password authentication. This guide explains how to configure a password-protected page on an Nginx web server running… Continue Reading Enable the authorization (password-protected) page on Nginx (Ubuntu).

Introduction When an Apache web server is placed behind a load balancer, Apache may record the load balancer’s IP address instead of the actual client IP address in the access logs. This can make troubleshooting, monitoring, and security analysis difficult. This guide explains how to configure Apache 2.4 to log… Continue Reading Enable remote IP address logging on apache2 behind load balancer

Introduction This guide explains how to install Apache 2.4 and PHP 5.6 on Ubuntu 16.04. Since Ubuntu 16.04 does not provide PHP 5.6 as the default PHP version, an additional PHP repository is required. This setup is useful for applications that depend on PHP 5.6 for compatibility. Prerequisites Before starting… Continue Reading Install apache 2.4, php5.6 on Ubuntu 16.04

Hosting multiple websites on a single NGINX server is a common requirement for development, staging, and production environments. NGINX uses server blocks (virtual hosts) to serve different websites based on the requested domain name. This guide explains how to configure multiple domains on a single Ubuntu server running NGINX. Prerequisites… Continue Reading Configure multiple domains(virtualhost) on nginx webserver