Hello,
I am trying to host 2 different rails applications on Linode. Here are the details.
1) First app is
www.eyesandfeet.com
2) Second app is
www.use.eyesandfeet.com
I have followed the same procedure that listed in the tutorial,
http://library.linode.com/web-servers/a ... al_hosting
So here is my apache config,
File excerpt: /etc/apache2/sites-available/eyesandfeet.com
<VirtualHost 69.164.207.220:80>
ServerAdmin
admin@eyesandfeet.com
ServerName eyesandfeet.com
ServerAlias
www.eyesandfeet.com
DocumentRoot /srv/www/eyesandfeet.com/eyesandfeet/public
ErrorLog /srv/www/eyesandfeet.com/logs/error.log
CustomLog /srv/www/eyesandfeet.com/logs/access.log combined
</VirtualHost>
File excerpt: /etc/apache2/sites-available/use.eyesandfeet.com
<VirtualHost 69.164.207.220:80>
ServerAdmin
admin@eyesandfeet.com
ServerName use.eyesandfeet.com
ServerAlias
www.use.eyesandfeet.com
DocumentRoot /srv/www/use.eyesandfeet.com/eyesandfeet/public
ErrorLog /srv/www/use.eyesandfeet.com/logs/error.log
CustomLog /srv/www/use.eyesandfeet.com/logs/access.log combined
</VirtualHost>
Then I have enabled both the sites and reloaded the apache.
I have placed the 2 rails applications in the respective folders as follows.
/srv/www/eyesandfeet.com/eyesandfeet
/srv/www/use.eyesandfeet.com/eyesandfeet
I have created 2 DNS entires for eyesandfeet.com and use.eyesandfeet.com..
When I point to
www.use.eyesandfeet.com, it points to
www.eyesandfeet.com.
But it supposed to go to the other application.
I have the same problem since 3days. Any help will be much appreciated.
Thanks,
Muni.