Frank
2006-Mar-19 04:48 UTC
[Rails] After Migration dispatch.fcgi not doing its job? Keep gettting the home page
I recently migrated a Rails application. After migration no matter what URL I access within the application, I keep getting the home page. so http://domain.com shows the home page. and so does http://domain.com/blog and also http://domain.com/some/other/url I have routes.rb properly set up (it was working on the old server). I am using RHEL 4 ES with Apache 2 and Fast CGI. Any ideas why dispatch.fcgi is accepting all calls but nor properly routing? Thanks in advance Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060319/35287505/attachment-0001.html
Frank
2006-Mar-19 05:06 UTC
[Rails] After Migration dispatch.fcgi not doing its job? Bizarre Stuff
I have found some more details in the hope that someone can help: I have created a dummy application. When I go to http://domain.com/ I get the home page When I go to http://domain.com/something/url I get "recognition failed error for partial URL, i.e: "thing/url" (note: missing "some" in "thing") Then the most bizarre thing happens. I restart Apache and http://domain.com/something/url starts going to Home page. I am using all the same Apache settings from my RHEL 3 on RHEL 4. Any ideas are apperciated. Frank Frank <softwareengineer99@yahoo.com> wrote:I recently migrated a Rails application. After migration no matter what URL I access within the application, I keep getting the home page. so http://domain.com shows the home page. and so does http://domain.com/blog and also http://domain.com/some/other/url I have routes.rb properly set up (it was working on the old server). I am using RHEL 4 ES with Apache 2 and Fast CGI. Any ideas why dispatch.fcgi is accepting all calls but nor properly routing? Thanks in advance Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060319/51af3ab4/attachment.html
Frank
2006-Mar-20 01:04 UTC
[Rails] After Migration dispatch.fcgi not doing its job? Solved (Kind of)
I was using RHEL 4 + Apache 2 with dynamically configured virtual hosting using mod rewrite. As it turns out there seems to be a bug with this combination. It works fine on RHEL 3 with the same configuration but on RHEL4, it stops working. It almost seems like dispatch.cgi / dispatch.fcgi is expecting some variable to be set which is then interpreted for routing. In my case the value of this variable was not being set for some reason and therefore I was experiencing weird results. After spending about 4 hours on trying to fix this, I converted my system to use an alternate method of virtual hosting. (the dynamically configured hosting was''nt needed anymore anyways). Hope this experience of mine helps someone in the future. Frank Frank <softwareengineer99@yahoo.com> wrote: I have found some more details in the hope that someone can help: I have created a dummy application. When I go to http://domain.com/ I get the home page When I go to http://domain.com/something/url I get "recognition failed error for partial URL, i.e: "thing/url" (note: missing "some" in "thing") Then the most bizarre thing happens. I restart Apache and http://domain.com/something/url starts going to Home page. I am using all the same Apache settings from my RHEL 3 on RHEL 4. Any ideas are apperciated. Frank Frank <softwareengineer99@yahoo.com> wrote:I recently migrated a Rails application. After migration no matter what URL I access within the application, I keep getting the home page. so http://domain.com shows the home page. and so does http://domain.com/blog and also http://domain.com/some/other/url I have routes.rb properly set up (it was working on the old server). I am using RHEL 4 ES with Apache 2 and Fast CGI. Any ideas why dispatch.fcgi is accepting all calls but nor properly routing? Thanks in advance Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060320/3389293e/attachment-0001.html