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?

Check your permissions, i have had similar problem before and they usually have to do we the permission of the user:group apache runs with.

all rights to all files are 0777, i tried all the users in the user:group in httpd.conf. It did not help.

DocumentRoot /var/www/rails/zak

this should point to the public directory, no to the app directory