mod_pony

Posted: Jun 26, 2009
Tagged: , and

Rich has spoken a number of times about the elusive Apache module mod_pony. This module does nothing more than render an ASCII art image of a pony to the browser. Rich jokingly refers to this as one of the better things you can do with your Apache web server in his "20 Things You Didn't Know You Could Do With Your Apache Web Server" presentation. Unfortunately, mod_pony doesn't actually exist, and the half-hearted attempts to bring it into existence resulted in various segmentation faults and other server crashes.

Until today!

Rich has announced the release of mod_pony! It's a simple Apache module, and is super easy to build from source. Unfortunately, Rich has a low opinion of Debian, so his installation instructions are insufficient for that distribution. Here's what I did to get mod_pony running on skippy.net:

$ sudo apt-get install apache2-prefork-dev
$ sudo apxs2 -cia mod_pony.c
$ sudo echo "LoadModule pony_module /usr/lib/apache2/modules/mod_pony.so" >> /etc/apache2/mods-available/pony.load
$ sudo a2enmod pony
$ sudo /etc/init.d/apache2 force-reload
$ cd /path/to/website
$ touch pony

Then, put this in your .htaccess file:

<Files pony>
     SetHandler pony
</Files>

Note: I'm using mod_vhost_alias for my virtual hosting configuration, which means I can't use the <Location> directive in a configuration file in the same way as described in the mod_pony source. Thus, I'm using the .htaccess mechanism to display my pony.


3 Responses to mod_pony feed icon

  1. comment icon Michael C. Harris

    Reading about it is one thing, but actually being able to see it in the browser, that's something entirely different (although both related to use of the eyes). I wonder how many hits your pony gets :)

  2. comment icon Bob

    Nice Pony!

  3. comment icon Rick

    Sweet! I came to leave a comment about how you should modify it to match your mating-unicorns shirt, and I was presented with this image in your 'Leave a Reply' area. What kind of coincidence is that?

    Teh ponies! They are taking over teh world!


About | Policies | skippy.net