I am trying to host a rails2 application on a new Virtual Machine which is CentOS 6 with Parallels Plesk Panel 11 (64-bit).
I have installed RVM,ruby,rails, and passanger Succefully using the steps given here
I have followed all the steps correctly.
I have installed ruby 1.8.7 and rails 2.0.2
Now the thing is that, I am able to run the application using the Webrick server at 3000 port on the new server. Everything works fine there. But when I want to run it with apache, it doesn’t run. when I hit the url it returns the page
Not Found
The requested URL /account/login was not found on this server. Apache
Server at http://www.mem.com Port 80
Here is my passanger.conf file :
/etc/httpd/conf.d/passenger.conf
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.8.7-p371/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.8.7-p371/gems/passenger-3.0.19
PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p371/ruby
Here is my virtual Host code :
/etc/httpd/sites-available/mem.conf
<VirtualHost *:80>
ServerAdmin youremail@example.com
DocumentRoot /var/www/mem/public
ServerName www.mem.com
ErrorLog /var/log/httpd/mem/error.log
CustomLog /var/log/httpd/mem/access.log common
</VirtualHost>
Any suggestions will be greatly appreciated.
The issue has been resolved. There already a Virtual Host had been created with different Document Root by the web hosting company. I moved my app directory to that path and application started. Thanks everyone for the suggestions.