Configuring KeepAlive with Apache RewriteRule [P] Proxying

Published on Author gryzli

Apache can be used for proxying requests with mod_proxy to a certain backend/upstream server. Here is how a simple proxy configuration looks:

The Problem The problem with this configuration is that Apache will create new TCP session to backend (192.168.1.1:8080) for every new request it receives. This might look as an innocent detail at… Continue reading Configuring KeepAlive with Apache RewriteRule [P] Proxying

ModSecurity – Using Lua scripts with ModSecurity

Published on Author gryzliLeave a comment

If you decide to use ModSecurity ‘s support of  Lua, here you can find some usefull tips to consider. Short story … At the time of writing this article, the current ModSecurity version is 2.9.0, which provides plenty of functionalities. However if you want to go deep into web application filtering or maybe you need to… Continue reading ModSecurity – Using Lua scripts with ModSecurity

Make Your WordPress At Least 3x Faster By Migrating To Nginx + PHP-FPM

Published on Author gryzliLeave a comment

If you want to make your WordPress at least 3x faster , then you should definitely read below…. Yesterday I woke up, and my first thought was – I need to make my WordPress blog faster !   Caring about performance ! That’s a great idea and most of the time, there is bunch of… Continue reading Make Your WordPress At Least 3x Faster By Migrating To Nginx + PHP-FPM

Qmail – Speed up mail sending process by tunning tcpserver settings

Published on Author gryzliLeave a comment

If you want to speed up qmail/tcpserver sending mails, you could try the following: 1. Open the file supervise/qmail-smtpd/run 2. Change the following line:

TO

This will enable TCP_NODELAY (-D option) and also disable attempts to resolve $TCPREMOTEINFO (-R option). 3. Info about tcpserver options General options:

Connection options:

Data-gathering options:

Calculating filesystem stride_size and stripe_width for best performance under RAID

Published on Author gryzli2 Comments

Here is a little howto on calculating the right stride_size and stripe_width when creating new ext4 filesystem. This makes sense when you are running either on hardware or software raid under linux.   What is stride size and stripe width ? These two parameters could be supplied to mkfs.ext3/ mfks.ext4, during the filesystem creation. By… Continue reading Calculating filesystem stride_size and stripe_width for best performance under RAID

Magento Performance Optimized Server

Published on Author gryzliLeave a comment

I’ve read some articles on magento performance tuning and server optimization for best result. Here I will try to summarize most of the important stuff I’ve read.   Server Software Magento best practices advice on using the following configuration: Nginx + MySQL + php-fpm (FastCGI) + APC / OpCache + (Varnish) It’s better to use… Continue reading Magento Performance Optimized Server

Web pages performance testing

Published on Author gryzliLeave a comment

Very often I need to test some page speed and using bunch of websites, which produce very detailed information.   Here are some of them:   http://www.webpagetest.org/ This is the first one I’ve been using for a long time. Here are some of the features it supports: Select location from which the tests are going… Continue reading Web pages performance testing