WordPress WordPress is incredibly simple and you need to modify very little. These configurations assume you are behind some kind of load balancer and will set the IP properly. nginx.conf: [ … ]
Category: Real Time Concepts
Caching dynamic content with Nginx
Technical Details The first thing we need to do, is configure Nginx to determine what needs to differentiate our cached pages. In our example, we’re using device type since this [ … ]
Block IP with Nginx behind CLB
If a customer is using a Cloud Load Balancer, they are restricted to only allowing/denying 100 IPs. However, they may want to block specific IPs still. Ideally, we would block [ … ]
X-Served-By Header for Identifying Web Nodes
Summary Apache has the ability to return its Hostname via the X-Served-By header. When troubleshooting nodes behind a Load Balancer, this can help localize a problematic node. This guide will [ … ]
Troubleshooting Alternative php Cache ( APC )
Overview APC (alternative php cache) is a module that provides opcode caching for PHP pages. It comes installed by default on our LAMP kicks and can be a major performance [ … ]
suPHP Configuration
Introduction suPHP is an Apache module primarily written in C++, who’s purpose is to execute PHP code as a different user to the web server. This is desirable when running [ … ]
Setting up basic password authentication with .htaccess
Create the password file: htpasswd -cm /etc/httpd/SITENAME-htpasswd USERNAME Then enter the user’s password twice. Next, update the .htaccess file in the directory that the user would like protected. These are [ … ]
Rewrite Rule Reference
Rewrites Rewrite domain.com to www.domain.com RewriteEngine On RewriteCond %{HTTP_HOST} !^www [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L] Rewrite www.domain.com to domain.com RewriteEngine On RewriteCond %{HTTP_HOST} ^www.domain.com [NC] RewriteRule ^(.*)$ http://domain.com$1 [L,R=301] Rewrite [ … ]
ProxyPass Instead of Varnish
Why use ProxyPass instead of Varnish? Who wants to run a separate daemon and worry about it crashing or have to change port configs? Not Me. So lets get started [ … ]
Protect Apache with fail2ban
Summary The purpose of this article is to configure and tune fail2ban to protect Apache web service.We often see Apache Access logs with hundreds of entries of gets and posts [ … ]