Moving to Mongrel

Posted on May 07, 2006

It’s kind of crazy the number of http servers that are running on hudge these days. The count has been incremented by one as of an hour ago. The alpha revision RSS Reader and typo installation proving ground are now running on Mongrel (proxied through Apache2). Both seem faster to me, but I haven’t any congruent empirical evidence to further this belief. So, this is merely a legend spread by way of an old wive’s tale until the appropriate numbers are calculated.

Apache ServerAlias Foo

Posted on February 27, 2006

I was knocking about in my httpd.conf today because I noticed that undefined VirtualHosts were being handled by the last VirtualHost entry defined. I can make a ServerAlias *.involution.com, but I only want that to work for everything that’s not defined by other entries. The problem is I have a cadre of other VitrualHosts defined for my domain that I don’t want handled by the main entry. For example, rpm.involution.com is handled by a different VirtualHost entry than the involution.com one with the *.involution.com alias. The other catch is I don’t want malformed domain requests going to an incorrect VirtualHost entry because it borks the logging. The only way I could make this work is by putting the entry with ServerAlias *.involution.com after all of the other VirtualHost entries for involution.com in httpd.conf which makes sense logically. Is this the correct way to handle this scenario or is there an easier way?

Bitbee 1.0, Fedora Core 5 T1 Screenshot, Irssi for FC5T1, Other Changes

Posted on December 05, 2005

Well, first off, I installed FC5T1 test under VMWare, and compiled the necessities. I managed to get Bitlbee 1.0 to compile under FC5, and built an RPM for it (also under FC4, Redhat 9, and RHEL4 as well). I wanted to test it, and ended up building an irssi RPM as well. The Bitlbee RPMs are located here. In the process of building, I took a screen shot and uploaded it to the screen gallery here. Also, I’ve been seriously hacking my httpd.conf file, and it has grown to around 1760 lines long. I’m redirecting a lot of old content, and I’ve migrated everything that used to be uberh4×0r to hudge, and a lot of cached links from the old server are now redirected properly on hudge.

PHP Scripts as mod_autoindex HeaderName and ReadmeName

Posted on September 25, 2005

One time, nugget said, Apache is great except for when it isn’t. As such, I spent about 3 hours yesterday trying to make mod_autoindex play with php scripts. Eventually, I pieced together about three emails and found out that I had to apply the following foo to my httpd.conf to make it work.

    <Directory "/path/to/rpms">
        AllowOverride Options FileInfo Indexes
        Options +Indexes
        AddType text/html .php
        AddHandler php-script .php
        IndexOptions +SuppressHTMLPreamble
        HeaderName /HEADER.php
        ReadmeName /FOOTER.php
        IndexOptions SuppressHTMLPreamble
        IndexIgnore .??* *~ *# HEADER* README* FOOTER*
    </Directory>

This basically makes the rpm directory (and its subdirectories) use HEADER.php as the header and FOOTER.php as the footer which Apache strangely calls ReadmeName for some bizarre reason. The original impetus for this foo was nugget’s stuff directory and Dag’s RPM warehouse.

Gnu m4 for CGI

Posted on December 23, 2003

Some crazy person is managing to use Gnu m4 as a CGI type language. Weird. Apparently they never heard of PHP or ASP.