Maxim of the day
#14: Do your part to make the world a better place; even if the outcome will be limited.
15 posts
#14: Do your part to make the world a better place; even if the outcome will be limited.
Big grats to One, with its one year uptime. ;) And been running for over 1500 days ! Old server is getting old. :(
(The 2nd one from the top ;), resting on that Xserve)
This is an old dual P3 I got off eBay years ago. This blog is running on that server. It's running Gentoo as OS.
Next up is Four and about an hour after that Two! Geekyness!
#12: Forget less. Keep a scheduled agenda.
Playing around and searching the web I enabled some decent caching now.
Here are some stats: image+html and php. Note that the php on apache (recompiled each request, about 1.5-2sec between every request) versus the cached output has a huge difference. Difference between images and static text files aren’t that huge. Also note that nginx has gzip enabled. The downside is that nginx caches all pages (HTTP code 200) for one hour and isn’t notified when pages are modified (yet).
The issue with the wrong IP address being shown when using nginx as reverse proxy can easily be solved with mod_rpaf.
vs
cache.blog.tuinslak.org 85.12.6.171 - - [22/May/2010:16:27:40 +0200] “GET /2010/05/nginx-reverse-proxy/ HTTP/1.0” 200 22639 “-” “Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.53 Safari/533.4” 1771 23031
I’ve been playing around a bit with nginx and its reverse proxy module. The “real” website is accessible here, whereas the cached version is here.
I’m deliberately making a difference between cache.* and live.* as blog.tuinslak.* might move to the cached version lateron.
The question, is it useful to reverse proxy this blog? No, probably not. But meh… It’s fun. :)
IP differences between both versions: live vs cache°. I’m guessing as most of the stats (Google Analytics and WP Stats) are JavaScript based, all stats should still be correctly generated. Only the Apache logs show the nginx proxy IP address. Which is normal, I guess.
#11: Avoiding doing a minimum; even if you are not motivated.