Category Archives: Webservers

Redirect from non www to www URL on Nginx

At times we come across requests from customers when they would like to redirect their non www URLs to www URLs. For example if a customer asks to force redirect his site from to To perform this setup on Nginx webserver, follow below steps:

How to Block countries on Nginx with GeoIP module

GEOIP : The GeoIP technology allows the web masters to get valuable information about the location of their visitors. It can determine the country, city, area code and much more.The web site developers use it for delivering of customized content based on the geographical location, targeted advertisements, web logs and statistics, spam prevention, location restricted access and other useful solutions.

This tutorial will help you to know how we can use the GeoIP module with nginx to block all visitor from single and multipal countries.

Use Linux cron Instead of WP-CRON

WordPress has internal function called WP-CRON, By default every time a page is loaded in admin or on the front-end of your site, WordPress calls WP-CRON. To avoid this, best way optimize the efficiency of your WordPress cron jobs is to disable WP-CRON and set up a Linux cron job. 


  • You need to have a working knowledge of Linux commands before you can use cron jobs effectively.

How to install Nodejs on CentOS


The objective of this small HowTo is to help the system administrators setup NodeJS on their CentOS Server.

NOTE: The mentioned steps are successfully ran on CentOS 6 version

Get Real Visitor IP in Apache Logs running behind a Load Balancer


The objective of this tutorial is to configure Apache webserver log settings to show the real visitor IP when Apache is running behind Load Balancer.

Redirect to

Many times we meet with a situation where we need to redirect root domains to www. With apache htaccess file you can put the following rule in .htaccess file of webroot directory of your domain

Enable HTTP Compression in lighttpd

Compression can save your valuable bandwidth & helps your site load faster on client’s end. However on the other end it takes little extra resources of your server.

Configure Lighttpd with chroot Jail Environment on centos-5 Machine

Common Information: chroot jail directory /webroot lighttpd document root /webroot/var/www/lighttpd

1. Install lighttpd, php and mysql server

Manage Apache download speed & Traffic Speeds

In this tutorial I will show you how to install & setup mod_cband on RHEL/CentOS/Fedora (64-bit version)

How to install Tomcat6 on RHEL/CentOS 5

During my first time setup of tomcat6 on CentOS 5, I struggled to get the tomcat6 version working correctly, this drove me to write this tutorial, I hope this tutorial will help you.