views:

418

answers:

0

Hi guys,

I am trying to deploy my rails application to virtual host's root with passenger but I had some problems. Error log:

[Sun Aug 23 10:09:06 2009] [error] [client 91.187.5.190] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Sun Aug 23 10:09:06 2009] [debug] core.c(3063): [client 91.187.5.190] r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /index.php

[Sun Aug 23 10:09:06 2009] [debug] core.c(3069): [client 91.187.5.190] redirected from r->uri = /

Record in vhosts.conf:

<VirtualHost *:80>
# All aliases: 
ServerName site.com
ServerAlias www.site.com
DocumentRoot /path_to_project/public
RailsBaseURI /
RailsEnv production
CustomLog /path_to_project/log/my.log "%h %l %u %t \"%r\" %>s %b"
LogLevel debug
ErrorLog /path_to_project/log/my2.log
SetEnvIfNoCase Referer "site.com" local_ref=1
SetEnvIfNoCase Referer "www.site.com" local_ref=1
SetEnvIfNoCase referer "^$" local_ref=1
<FilesMatch "\.(gif|jpg|mpg|mp3|mpeg|avi)$">
  Order Allow,Deny
  Allow from env=local_ref
</FilesMatch>
ScriptAlias /cgi-bin/ "/path_to_project/cgi-bin/"
<Directory "/cgi-bin/">
  Options None +FollowSymLinks
</Directory>
<Directory />
  Options All -Indexes
  AllowOverride All
</Directory>
</VirtualHost>

When I try to deploy to a subfolder, everthing works fine... Do you have any ideas? Thanks.