apache
General posts that involve Apache 2, these will include howtos, configuration information and experiments
nginx, proxy_cache and reverse proxying explained & benchmarked
3Where to begin? nginx would be a good start I suppose. It's far easier and makes much for sense for you to actually read about nginx from it's own website - http://nginx.org/en/ - but just to give a simple explanation too; `nginx is king of static content HTTP servers.`
Anyone that has dealt with Apache on medium to high traffic websites will know that Apache is bit of a `wheezy, old geezer` when it comes to content serving using it's mpm-worker (threaded). Very often high traffic will cause server load to go through the roof but for serving dynamic content, there really is no More >
Using nginx, Varnish and Apache
7So lets get to the problem first. I have several lightly to medium loaded sites running on some virtual servers, they servers themselves are highly configured to run beautifully on our host environments, very, very RAM intensive but low disk I/O and low CPU usage.
As mentioned, the sites are relatively low loaded, they'll generally hang around at between 3,000-5,000 unique hits a day and are run through Apache using PHP, various PHP modules and MySQL, a simple generic LAMP environment, yet customised to suit it's surroundings and host.
The sites themselves run fine on that setup, More >
HOWTO: Debian – Apache 2 SSL on multiple virtual hosts
4Figured I'd write this one up quickly as it proved to annoy the hell out of me at 4:30am this morning getting it working on a live server.
Apache 2 can serve SSL content to multiple vhosts on your setup, provided they use different IP addresses, this post will give you a quick run down on how to do it.
First up we need to actually add the new IP to the machine in /etc/network/interfaces.
auto eth0
iface eth0 inet static
address 10.1.1.7
netmask 255.255.255.0
gateway 10.1.1.1
auto eth0:1
iface eth0:1 inet static
address 10.1.1.8
netmask 255.255.255.0
Replace my IPs with your own.
Restart More >
HOWTO: Debian server security
3Server security is something I've always tried to keep myself up-to-date on. I have at least a dozen RSS feeds that I read daily to learn about the latest flaws, holes releases etc. That being said I am by no means an "expert", I've learned what I've needed to learn over time. I like to think that over the years I've gained enough knowledge to almost completely secure servers with all the programs installed that I generally use.
The aim of this article is to introduce you to some of the programs I use for security and some config changes that can be made to other programs to make them more More >
HOWTO: Debian, Apache 2 & mod_ssl with self signed cert. or officially signed cert.
2This is gonna be quite a simple tutorial that should be the same (excluding pathing and apt) across other Linux distros.
InstallationFirst off we'll get Apache and mod_ssl install
apt-get install apache2
SSL should be enabled by default, if not run the following
SSL certificatea2enmod ssl
There are several ways of doing this, the first you need to figure out is if you want a self signed certificate or one signed by a provider like GeoTrust, this type is not free. In this article I'll cover both, starting with self signed.
Self signedmkdir /etc/apache2/ssl && /usr/sbin/make-ssl-cert More >
Apache 2, Nginx & WordPress MU – Follow up
0This is a quick follow up to a previous post about getting this blog running on nginx with a reverse proxy to Apache 2.
It seems the issue stems from 3 mods I had installed and enabled
- mod-spamhaus
- mod-evasive and
- mod-security
The 3, when running together are a fantastic way to strengthen any web server from attack, be it DOS, injection, XLS etc. I've sworn by all 3 of them for years now and I thought I had them cracked for security:performance ratio, when it comes to reverse proxying requests from nginx to Apache 2 where WordPress is concerned, apparently I was very wrong.
The issue wasn't More >
Debian, Apache 2, Nginx, WordPress MU & WP-Super-Cache
2This is a rather old article, for more up-to-date information please see;
- http://syslog.tv/2010/02/07/nginx-proxy_cache-and-explained-benchmarked/
- http://syslog.tv/2010/02/14/more-nginx-proxy_cache-optimizations-and-nginx-load-balancing/
I've started collecting a few blogs on my servers now and figured from this one on I would consolidate it in to one workable, usable location. Removing my need to update multiple plugins, themes and WordPress itself, over and over.
This time round I thought I'd do it properly, and properly in my book is as complicated and "awesome" as it can possibly be, More >

