Well, it was a pain in the ass, but I managed to get multiple Rails sites running with lighttpd on the same domain.

Here’s the interesting parts of the lighttpd.conf file that makes this magic shit work:

# needed for aliases to work
server.modules = ( "mod_rewrite", "mod_fastcgi", "mod_alias" )

$HTTP["url"] =~ "^/svn_browser/cisv" {
  server.document-root = "/users/home/joevd/domains/joevandyk.com/cisv_collaboa/public/" 
  alias.url = ( "/svn_browser/cisv" => "/users/home/joevd/domains/joevandyk.com/cisv_collaboa/public" )
  server.error-handler-404 = "/svn_browser/cisv/dispatch.fcgi" 
  server.indexfiles = ( "dispatch.fcgi", "index.html" )

  fastcgi.server = ( ".fcgi" =>
    (( 
       "socket" => "/home/joevd/lighttpd/joevd_cisv_svn1.socket",
       "min-procs" => 1,
       "max-procs" => 1,
       "bin-path" =>  "/users/home/joevd/domains/joevandyk.com/cisv_collaboa/public/dispatch.fcgi",
       "bin-environment" => ( "RAILS_ENV" => "production" )
  )))
}

$HTTP["url"] =~ "^/svn_browser/gamefest" {
  server.document-root = "/users/home/joevd/domains/joevandyk.com/gamefest_collaboa/public/" 
  alias.url = ( "/svn_browser/gamefest" => "/users/home/joevd/domains/joevandyk.com/gamefest_collaboa/public" )
  server.error-handler-404 = "/svn_browser/gamefest/dispatch.fcgi" 
  server.indexfiles = ( "dispatch.fcgi", "index.html" )

  fastcgi.server = ( ".fcgi" =>
    (( 
       "socket" => "/home/joevd/lighttpd/joevd_gamefest_svn1.socket",
       "min-procs" => 1,
       "max-procs" => 1,
       "bin-path" =>  "/users/home/joevd/domains/joevandyk.com/gamefest_collaboa/public/dispatch.fcgi",
       "bin-environment" => ( "RAILS_ENV" => "production" )
  )))
}
You also need to add the following to the app’s config/environment.rb file (at the very end):
ActionController::AbstractRequest.relative_url_root = "/svn_browser/cisv" 

It’s a royal pain, but it’s pretty cool once you got a working configuration.

I hate password policies that force you to change your passwords every few months. There’s only so many freaking passwords a man can remember. Or a girl. But I’m talking about men here, not girls.

We learn about how much Boeing’s 2005 EIP (employee incentive plan) will be tomorrow! I’m excited. Free money!

That sounds pretty sweet.

Another week or work. How fun!

24

24 is such a great show. I hate having to wait a week between showings.

I literally shake sometimes when watching it. I think that makes me a wimp or something.

God I’m hungry. But I’m also lazy. :(

My wife needs to come home and get in the kitchen and make me dinner!

I went to Fry’s yesterday and purchased a new server. $170 bucks. Pretty darned cheap. Running ubuntu 5.10 server on it.

I added an extra 512 megs of ram to it (had an extra sick at home) for a grand total of 640 megs. A 300 gig hard drive is on the way. Later on, I’ll get a couple more hard drives and make a terabyte raid server out of them.

It’s amazing how cheap computers can be bought for now. And *nix makes them quite useful. I’m using it as a file server and as a software development machine.

My car went in for its 180k maintenance. Ended up costing me more than $1,000. Jesus christ.

They did a lot of work on it (brakes, cv boots, water pump, radiator hoses, valves, etc) so hopefully it’ll run for another 180k miles. It’s a ‘91 camry. The brakes actually work now, woohoo!

Starting this blog yet again. I was dumb and accidently erased everything I had on it.