Nginx maintenance page with 503 HTTP status code

Conspiracy KeanuThe other day I had to do some maintenance on a server with Nginx configured as a reverse proxy for Apache. The configuration was very simple - Nginx was in front of Apache and it served static content. Apache in the back was responsible for PHP stuff.

During the maintenance period, I wanted to redirect all requests to a custom maintenance page. Also, to avoid search engines indexing my maintenance page, I wanted that maintenance page returns proper HTTP status code - i.e. 503 service unavailable.


Etherpad Lite up 'n' running in 5 minutes

Forever aloneEtherpad Lite is a lightweight version of (probably) the most popular web-based collaborative real-time editor - Etherpad. This great peace of software allows multiple users to edit the same document in real-time. To make collaboration easier, users have built-in chat at their disposal. History playback, infinite undo, easy import and export of documents are some of the cool stuff it has to offer.

Compared to the original, EL has very short system requirements list, which makes it very easy to deploy. Since it's written in server-side JavaScript using Node.js, to make it functional for testing/development purposes you'll need only Node.js, but for everyday/production usage it's recommended that you use a web server (e.g. Apache or Nginx) and MySQL.


Webalizer stats for multiple websites

Samuel L. JacksonWebalizer is a web log analysis software licensed under GPL. It's written in C and it's super fast in processing access log files. Configuring Webalizer is very easy, especially if your Apache web server combines all access logs into one log file, but I noticed that many people have trouble configuring Webalizer for multiple websites (virtualhosts). There are a couple of ways to make this trouble disappear, but I'll explain only one which is, in my opinion, one of the easiest and applicable in most scenarios.

Although I'm using CentOS 6, this tutorial isn't CentOS-specific. So, if you're using another distro you'll notice that there are some differences, but you'll get there in the end.


MySQL hot backup with XtraBackup on CentOS

Dwight SchruteIf you are in a need for hot backup solution for MySQL RDBMS, you should try out Percona's XtraBackup. Now, as you can read on the official website, XtraBackup is the world's only open-source, free MySQL hot backup software that performs non-blocking backups for InnoDB and XtraDB databases. XtraBackup also supports MyISAM backups, although not without table locks.

XtraBackup consists of three tools - innobackupex, xtrabackup and tar4ibd.

Innobackupex is a wrapper script written in Perl that allows you to backup a complete MySQL instance with InnoDB, MyISAM and XtraDB tables. XtraBackup is a tool compiled in C which main job is to copy only InnoDB and XtraDB data. Of course, there is tar4ibd - a tool that safely stores InnoDB data in tar archive.


Fine tuning cPanel autoresponder interval

Y u no answer email?If you enabled autoresponder in your cPanel, then you probably noticed that, by default, the sender gets only one autoreponder message every 8 hours. There is nothing wrong with that. In fact, the purpose of this interval setting is to prevent sending a bunch of emails to the sender who sends more then one email to the user who has enabled autoresponder.