Reinier Balt - 21 September 2010 09:16 PM
how is it running on apache? fcgi?
In that case you need to change the .htaccess to get it working with subdirs. There are some examples floating around on forum.
No. I’m using passenger. What do I need to do in that case?
Here’s the things I’ve tried
1 - Configure apache
On ‘’/etc/apache2/sites-available/default’’ I have
Alias /tracks/ "/var/www/tracks/public/"
<Directory "/var/www/tracks/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
2 - Edit site.yml
If I edit ‘‘config/site.yml’’ and uncomment
subdir: "tracks"
The error I get on the browser is
Application error
Rails application failed to start properly
Looking into apache error logs I have
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.
3 - Edit htaccess
If after this, on ‘‘public/.htaccess’’ I add the line
RewriteBase /tracks
I get the contents of ‘‘public/dispacth.fcgi’’ on the browser