Adding rails web-site to a server running php web-site (linux) -
i have 2 sites hosted on 1 server, site1.com , site2.com, both of them written on php
site1.com points default location /var/www/html/
site2.com configured in /etc/apache2/sites-available/site2.com.conf file. contents of file:
<virtualhost *:80> servername site2.com serveralias www.site2.com serveradmin webmaster@site2.com documentroot /var/www/html/site2/ </virtualhost> now wrote web-application, site3. site3 written on ruby on rails framework. @ moment start rails server -b 0.0.0.0 command @ /var/www/html/site3/ directory , access entering 'site1.com:3000' url in browser.
what want do: create configuration, map 'http://site3.com' url /var/www/html/site3/ directory.