I installed Ruby on Rails under Virtualmin GPL and everything appears to work fine except I would like now to change the Document Root directory and don't seem to find a way to do so. Specifically here is my scenario:
1) I did a clean install of virtualmin on Ubuntu 12.04 LTS server. 2) I install Rails with RVM and Phussion Passenger 3) Created a Virtual server
Rails is running fine but if for example I create a rails app by running
rails new app
Now the rails app root directory will be
public_html/app/public so I would like for the virtual server Apache document root to point to
public_html/app/public instead of
public_html so the domain url access the rails application directly
www.mydomain.com.tld instead of
I tried using website redirects without success, perhaps I don't know how to properly specify the redirect or maybe I need to change something else.
Your help would be appreciated.