Rails + Apache2 problem


I'm quite a noob, after days of work and suffer I managed to deploy my rails app to my server with capistrano 2.

I don't use mongrel or lighttpd, webrick is strong enough for my small projects ;]

my app is in /home/paul/rails/Test/current/

so I created this apache2 virtual host in my httpd.conf:

<VirtualHost *:80>   ServerName test.mydomain.com   DocumentRoot /home/paul/rails/Test/current/public/   ErrorLog /home/paul/rails/Test/shared/log/server.log

  <Directory /home/paul/rails/Test/current/public/>      Options ExecCGI FollowSymLinks      AddHandler cgi-script .cgi      AllowOverride all      Order allow, deny      Allow from alll   </Directory> </VirtualHost>

my script/spin file looks like this: /home/paul/rails/Test/current/script/process/spawner fcgi -p 80 -i 3 - r 5

When I access test.mydomain.com I get a 403 "You don't have permission to access / on this server."

What's wrong?

Hi Brian,

Thank you very much for your quick response!

a) Well would there be a way to run webrick on subdomain.mydomain.com for example? how could I achieve this? Thought the only way to do this is with apache's virtual hosts (in my case).

b) Where else should it point to? Can you tell me more (or give me keywords/resources) about this configuration?

Thank you. I think I will also try to deal with mongrel from now on!

Yes, this seems to be the best solution!

Can't thank you enough for your consultation!

Wish you all best, Paul