# http://www.igvita.com/2013/12/16/optimizing-nginx-tls-time-to-first-byte/ # http://www.igvita.com/2013/10/24/optimizing-tls-record-size-and-buffering-latency/ * change 1.5.7 to your appropriate Nginx version cd /svr-setup/nginx-1.5.7/src/event/ wget -cnv http://centminmod.com/centminmodparts/nginx/patches/157tls/nginx157tls.patch With Centmin Mod v.1.2.3-eva2000.06+ and higher, enable NGINXPATCH=y in /usr/local/src/centmin-v1.2.3mod/centmin.sh Run ./centmin.sh and recompile Nginx with menu option #4. cd /usr/local/src/centmin-v1.2.3mod ./centmin.sh Just before configure process, you will get a 60 second delay (thanks to NGINXPATCH=y option). During this delay, start a 2nd SSH windows session, patch your Nginx source files with these commands. cd /svr-setup/nginx-1.5.7/src/event/ patch -p0 < nginx157tls.patch