I've been trying to deploy my app using a sub uri, like it says in the
users guide, but I am running into problems.
I am running Mac 10.5.3, with the apache 2 server that it came with.
I'm using the ruby that it came with, also. I've upgraded rails to
2.3.2. I installed passenger today, so it is at 2.1.2. The
installation seemed to go fine - no errors were reported.
Currently I have two virtual hosts running on this machine. This is a
computer on a university campus. The university runs the dns, and
there are two names that come to this computer. I am not allowed to
run my own dns software, and getting a new domain name is not trivial,
so I would like to avoid that. I'd like to run my app in a sub-
directory of one of my current domains.
I've moved my rails app to this machine, and I've set up the
database. All of the production mode information is in config files,
and I am able to run my app, in production mode, with mongrel. I can
see it by going to my main domain:3000.
I can adjust my virtual host so that it points to the public directory
of my app, and my app runs fine then, too. I can't leave it set up
that way because then I can't see any of the other files on my server.
So I set up the virtual host so that it would use a sub uri, and my
application does not work. I get a nice phusion error screen that
tells me "The directory "/Library/WebServer/Documents" does not appear
to be a valid Ruby on Rails application root."
I am not really sure what to do next, and I am looking for a little
bit of help.
I have my app elsewhere on the computer. I have symlinked the public
directory from it to /Library/WebServer/Documents/rails. I am hoping
to contact the rails app by going to
http://blah.blah.edu/rails
Here is my virtual host info:
<VirtualHost *:80>
DocumentRoot /Library/WebServer/Documents
ServerName
blah.blah.edu
RailsBaseURI /rails
<Directory /Library/WebServer/Documents/rails>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Does anybody have any idea why this isn't working? Any tips or
suggestions? What have I done wrong?
Thanks!
Tamara