Let's say your next
application is called rails2 and resides at the
/home/username/rails2 path. You want to have it
publicly viewable as a folder on your domain, so
you use the following commands to
symlink it:
ln -s
/home/username/rails2/public /home/username/public_html/rails2
In this example, please
note that the rails2 folder should not already
exist inside
public_html for the symlink. Additionally,
please note that you can call the folder inside
public_html anything: It does not have to have
the same name as the Rails application at
/home/username/rails2 does.
After doing this symlink,
you would need to make one change to your Rails
application in order for it to work. Go to
/home/username/rails2/public and open the
.htaccess file . Uncomment or add this line:
#
RewriteBase /myrailsapp
to
RewriteBase /myrailsapp
Then change the line to
match your folder's name:
RewriteBase /rails2
Now, you have 2 Rails
applications running on your domain. You would
even be able to add more Rails applications
using this same method.
Have fun riding the Rails!