I have recently installed Tracks
(with much trial and error - as I am completely new to Ruby/Rails)
These are my stats:
Windows 7
Tracks 1.7.1
ruby 1.8.7
rails 2.3.5
mongrel 1.1.5
mongrel_service 0.3.4
Apache 2.2
I have almost (but not quite) got the installation working as desired.
I would really appreciated any help with the following (admittedly minor) problem:
Currently I can access tracks on http://localhost:3000/
What I would like is to access tracks on http://localhost/tracks
I found http://www.getontracks.org/forums/viewthread/284/ quite useful, but am still not there.
I have the following lines in my httpd.conf:
ProxyPreserveHost On
ProxyPass /tracks/ http://localhost:3000/
ProxyPassReverse /tracks/ http://localhost:3000/
These redirects work, but all the links/style sheets etc are http://localhost/* instead of http://localhost/tracks/*
I assumed that I simply needed to set: subdir: “/tracks” in site.yml, but when I do, my mongrel server no longer starts.
on executing
ruby script/server -e production
I get the following error:
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 2.2.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with production environment…
Exiting
C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load’: syntax error on line 25, col 1: ` subdir: “/tracks”’ (ArgumentError)
As I said, any help/suggestions would be greatly appreciated ![]()
Update: I had a spurious space in front of “subdir”!


