Latest News >> 2008-07-20 2008-06-25

I’ve been completely fed up with news/feed/rss/atom readers these days. I use Linux as my primary operating system, and I only have a few feeds that I want to rip through quick so I can get to reading the content. Yet, trying to find a reader that doesn’t suck donkey balls has been a chore.

2008-06-21

Wanna know what all the Ruby vulnerabilities are? Or at least have a fun look at how to search through code for clues? It’s a blast.

2008-06-13

I’m dropping a large blog post on everyone to just say that I haven’t died, I’ve just been busy working on my book for A/W about Mongrel. I had contracted with them to do a book about deploying Mongrel, but then decided it wouldn’t be a very good book since we’d already done one about that topic and there wasn’t too much more to say.

Win32 Support

Curt Hibbs has done some great work getting Rails to work on Win32 with Apache1 and Apache2. He has even rebuilt the mod_scgi.so files for both web servers and tested the configuration. Hopefully his built .so files will work, but he’s told me that he’s fed his changes back to the SCGI developers for inclusion later.

Getting The mod_scgi.so Files

You can get Curt’s builds of the apache modules at the downloads directory as .zip files:

Apache Configuration

Curt also has these instructions for the Win32 configuration, which are pretty similar to the apache2 instructions.

Changes to Apache’s httpd.conf

In both cases I added this immediately after the the LoadModule of mod_rewrite (make sure mod_rewrite is uncommented):

LoadModule scgi_module modules/mod_scgi.so

For apache 1 only, add the following immediately after the AddModule of mod_rewrite:

AddModule mod_scgi.c

Apache2 doesn’t use AddModule.

Add this to connect to your Rails application:

SCGIMount / 127.0.0.1:9999

You can also mount at a particular URL path like this:

SCGIMount /rails/cookbook 127.0.0.1:9999

But you have to modify your rails routes.rb (probably the same thing you have to do if you use Apache’s Alias directive… I haven’t yet done this so I can’t say for sure).

More Advanced Configuration

Again, refer to the apache2 configuration documentation for more information on doing a more complex Apache2 configuration with virtual hosts.