Topic: Apache 2 + Passenger + RoR3 + newbie
I want to set up in production mode a web site in ruby on rails on a personal server.
This one has to integrate a set of php website; I'll explain:
I currently have this configuration:
/var/www => Website in php (accessible via "my_ip") /var/www/blog => Website in php (accessiblee via "my_ip/blog") /var/www/others => Website in php (accessiblee via "my_ip/others") ...
I want to integrate and use my WebSite in RoR like that :
/var/www/tracker => Sous-site/script en RoR (accesible via "my_ip/tracker")
So I put the code for my Ruby on Rails in the tracker folder and change my conf apache like this:
FILE apache2.conf in /etc/apache2/
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-\3.0.11/ext/apache2/mod_passenger.so PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11 PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p125/ruby
file : default in /etc/apache2/site-available/
<VirtualHost *:80> DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options MultiViews AllowOverride All Order allow,deny allow from all </Directory> <Directory /var/www/others/> #... </Directory> #<============HERE IS WHAT I ADD=============> #<=======================================> RailsBaseURI /tracker <Directory /var/www/tracker/> AllowOverride all Options -MultiViews </Directory> #<=======================================> </VirtualHost>
I got the following error:
In fact he was trying to get to the config/environment.rb file using this path:
instead of this path:
Where did i do a mistake and how can I solve this problem?
Last edited by yoshyn (2012-04-01 09:33:10)