# Deploy rails app on rackspace server fcgi problem

**URL:** <https://www.ruby-forum.com/t/deploy-rails-app-on-rackspace-server-fcgi-problem/149806>\
**Category:** Deployment\
**Created:** [September 30, 2008, 1:22am UTC](https://www.ruby-forum.com/t/deploy-rails-app-on-rackspace-server-fcgi-problem/149806 "2008-09-30T01:22:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![llebron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a3d4f5/32.png) [@llebron](https://www.ruby-forum.com/u/llebron)\
**Post date:** [September 30, 2008, 1:22am UTC](https://www.ruby-forum.com/t/deploy-rails-app-on-rackspace-server-fcgi-problem/149806/1 "2008-09-30T01:22:26Z")

</div>

I need some help with mod rewrite. I’m trying to setup a Rails  
application to use fcgi on a rackspace server.

Tech support provided me with the following .htaccess

.htacess

RewriteEngine On  
RewriteRule ^$ /public/index.html [L]  
RewriteCond %{REQUEST\_URI} !^/parroquia/public  
RewriteRule ^(._)$ /public/$1 [L]  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteRule ^(._)$ public/dispatch.fcgi/$1 [QSA,L]

This files sits in the httpdocs folder and the Rails app is in  
httpdocs/parroquia//public

When I try to access the domain I get an internal server error.

The apache error log states the following

apache error log  
[Mon Sep 29 16:23:27 2008] [error] [client 216.186.253.3] 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.

Any help would be greatly appreciated.

thanks again,

Luis
