[Rails] Multiple application deployments on a single Apache host
Damon Clinkscales
damon at vitalbook.com
Wed Dec 1 19:03:34 GMT 2004
Hi Everyone,
I am setting up Rails for a team of developers to be able to set up
their own apps easily to play with Rails. Ideally this would look
something like:
http://servername/app1/list
http://servername/app2/edit/0
http://servername/app3/show/1
etc...
all on the same server, on port 80
All of the examples I have seen have you set up a single app at a time
with its own host. I looked at the FAQ and didn't see anything. Can I
have a single host in Apache with multiple "/public" directories that
run different Rails apps?
What I've done in the meantime is gone with a new port for each app,
adding this section to httpd.conf for new apps
Listen 3000
< VirtualHost theipaddresshere:3000>
DocumentRoot /Users/admin/rails/bin/App1/public
ServerName servername.domain.com
<Directory "/Users/bob/rails/bin/App1/public/" >
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Obviously this isn't ideal, but it works fine for testing. I'm running
on Mac OS X Panther Server.
Thanks for any ideas!
Damon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1233 bytes
Desc: not available
Url : http://one.textdrive.com/pipermail/rails/attachments/20041201/45a17f2d/attachment.bin
More information about the Rails
mailing list