[Rails] ror 3 + apache2 + passenger = apache test page
I set up Passenger on manual -
http://wiki.rubyonrails.org/deployment/apache-passenger
Passenger and Apache install without errors.
/etc/httpd/conf/httpd.conf:
>> ...
>> LoadModule passenger_module
>> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/
>> ext/apache2/mod_passenger.so
>> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2
>> PassengerRuby /usr/local/bin/ruby
>> PassengerDefaultUser root
>> ...
>> <VirtualHost *:80>
>> ServerName 39pk.ru
>> ServerAlias www.39pk.ru
>> DocumentRoot /var/www/rails/zak
>> RailsEnv production
>> RailsBaseURI /app
>> ErrorLog logs/39pk.ru.log
>> </VirtualHost>
>> ...
rails_app/config/enviroment.rb:
>> require File.expand_path('../application', __FILE__)
>> Zak::Application.initialize!
>> Rails::Initializer.run do |config|
>> config.action_controller.relative_url_root = '/app' # add this
>> end
>> # pwd
>> /var/www/rails/
>> # ls -la
>> итого 8
>> drwxr-xr-x. 2 root root 4096 Фев 6 16:35 .
>> drwxr-xr-x. 3 root root 4096 Фев 6 15:52 ..
>> lrwxrwxrwx. 1 root root 26 Фев 6 16:35 zak -> /home/up/rails3/zak/public
Apache starts successfully, but instead of pages of ROR3, I see apache
testpage. But apache see all files, which in public ROR directory -
/home/up/rails3/zak/public
What i must do to normaly run Rails?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home