Nginx: compile with http_substitutions_filter support
# tested under CentOS release 5.11 (Final)
yum -y install rpm-build git
yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel
wget http://nginx.org/packages/centos/5/SRPMS/nginx-1.6.2-1.el5.ngx.src.rpm
rpm -i nginx-1.6.2-1.el5.ngx.src.rpm
git clone git://github.com/yaoweibin/ngx_http_substitutions_filter_module.git
cd /usr/src/redhat/SOURCES/
/usr/src/redhat/SOURCES
tar xzf ../nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --add-module=/root/ngx_http_substitutions_filter_module --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.