Forum: Ruby on Rails SwitchTower, Apache, and Routing Errors

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
brian.takita (Guest)
on 2005-12-08 21:16
(Received via mailing list)
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:
brian.takita (Guest)
on 2005-12-08 21:20
(Received via mailing list)
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.
This topic is locked and can not be replied to.