passenger (mod_rails)

I am trying to do some testing with mod_rails. I think I have everything well configured, but when I try to get to my application I get an internal server error and this message in the error log:

[Sun Apr 13 11:23:14 2008] [alert] [client 127.0.1.1] /home/juanma/work/artpub/public/.htaccess: Option ExecCGI not allowed here

I am using ubuntu and I have no knowledge of apache. Can somebody help?

Thanks

<Directory "/var/www/railsroot" >          Options FollowSymLinks          AllowOverride All      </Directory> Could help.

Best regards

Peter De Berdt

Peter De Berdt wrote:

     <Directory "/var/www/railsroot" >          Options FollowSymLinks          AllowOverride All      </Directory> Could help.

Thank you Peter, but it doesn't work form me. I have added the lines to the file in the available-sites directory of apache.

This is the file for the virtual host (artpub.com)

<VirtualHost artpub.com>   ServerName artpub.com   DocumentRoot /home/juanma/work/artpub/public      <Directory /home/juanma/work/artpub >          Options FollowSymLinks          AllowOverride All      </Directory> </VirtualHost>

I have not touched .htaccess

But now, I have this message in the error log

[Sun Apr 13 12:19:54 2008] [alert] [client 127.0.1.1] /home/juanma/work/artpub/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Thanks Juan M. Cervera

http://www.modrails.com/documentation/Users%20guide.html#_configuring_passenger

Please check RailsAllowModRewrite directive and also read the section about conflicting modules.

Delete your .htaccess.