SwitchTower, Apache, and Routing Errors


#1

Hello,

I deployed a Rails App using Switchtower and now I’m getting a Routing
Error
to my Javascript and Stylesheet files.

Has anybody else had this issue?

Here is the log file.

/usr/lib/ruby/1.8/fcgi.rb:597:in `each'

/vendor/rails/railties/lib/fcgi_handler.rb:52:in `each_cgi'
/usr/lib/ruby/1.8/fcgi.rb:597:in `each'
/usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'
/vendor/rails/railties/lib/fcgi_handler.rb:52:in `process!'
/vendor/rails/railties/lib/fcgi_handler.rb:22:in `process!'
/usr/local/web/ned/current/public/dispatch.fcgi:24

Here is my routes.rb file:


#2

I solved it.
sigh

It was my .htaccess file.

I set the
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
line before
RewriteEngine On

Placing
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
after
RewriteEngine On
fixes the issue.