Category: www

  • nginx reverse proxy IP

    The issue with the wrong IP address being shown when using nginx as reverse proxy can easily be solved with mod_rpaf. cache.blog.tuinslak.org 85.234.196.237 – – [22/May/2010:16:33:46 +0200] “GET /2010/05/nginx-reverse-proxy/ HTTP/1.0” 200 6184 “-” “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” 1766 6503 vs cache.blog.tuinslak.org 85.12.6.171 – –…

  • nginx reverse proxy

    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…

  • iRail

    Let me remind you, iRail is NOT affiliated with the NMBS/SNCB in any way. This website was created during my spare time (and mainly for myself). It is also maintained during my spare time. NMBS/SNCB never helped to create or maintain this website (nor did it show any interest to do so). I never got…

  • Mobile B-Rail website

    Only one and a half year after I launched iRail, the NMBS/SNCB launched their own mobile website (with a few additional functions, but not all of them optimized for mobile view). Well done I’d say. Just a tiny bit late. 🙂 And too bad there doesn’t seem to be an iPhone optimized version (later?). Oh…

  • nginx + fastcgi PHP

    I recently migrated vm1 to nginx instead of lighttpd. Just for the sake of playing and testing around. As there’s a PHP page as well, I had to set up fastcgi with PHP. I mainly followed this tutorial to try to get PHP working. However, every PHP page I visited returned following error: No input…

  • uptimed php file

    If you’re running uptimed (or uprecords) and what to display it in a simple php page, you’ll notice the bold text makes the page somewhat ugly. Use this file to remove the bold chars and make it readable. Examples: zero, one, four, vm1, Sauron

  • Agenda / Todo page

    This summer I created a simple “agenda” for myself. I’ve been using it every now & then, but forgot to “share” it. So here it goes. Screenshots below Features: Add todo items Change todo items to completed List of (completed) todo items PHP + MySQL Basic Prowl support Example SQL create script There’s NO login.…

  • iRail new year’s bug

    Took me a while to notice, but iRail.be was displaying the wrong year by default (2011 instead of 2010) and the NMBS website doesn’t have the 2011 time tables yet. Resulting in errors. Anyway, fixed!

  • MRTG

    As I often have people asking for the files I use to make my pretty MRTG graphs; I’ll publish them here. Here are some examples: Zero – One – Four – vm1 – Sauron The config files: Sauron (including Squid stats), Zero (including fan stats). List of files included: indexmaker; simple script (included with MRTG)…