Plesk 8.3 - ROR app at domain root level
To make the app show up at the document root, we have to create a vhost.conf file in your domain's conf directory, and then use the websrvmng application to regenerate your domain's configuration.
Change directory to the domain's conf directory:
Code:
cd /var/www/vhosts/{domainname.com}/conf/
Create and begin editing a vhost.com file:
Code:
touch vhost.conf nano vhost.conf
Add the following line, replacing data in brackets:
Code:
DocumentRoot /var/www/vhosts/{domainname.com}/httpdocs/{railsapp}/public
Reconfigure the virtualhost using websrvmng:
Code:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name={domainname.com}
Verify that the following line is in /var/www/vhosts/{domainname.com}/conf/httpd.include (usually at the bottom):
Code:
Include /var/www/vhosts/{domainname.com}/conf/vhost.conf
Restart apache:
Code:
apache2ctl graceful
Visit your site:
Code:
http://www.{domainname.com}