# After Migration dispatch.fcgi not doing its job? Keep gettti

**URL:** <https://www.ruby-forum.com/t/after-migration-dispatch-fcgi-not-doing-its-job-keep-gettti/83810>\
**Category:** Rails\
**Created:** [March 19, 2006, 7:29am UTC](https://www.ruby-forum.com/t/after-migration-dispatch-fcgi-not-doing-its-job-keep-gettti/83810 "2006-03-19T07:29:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@frank](https://www.ruby-forum.com/u/frank)\
**Post date:** [March 19, 2006, 7:29am UTC](https://www.ruby-forum.com/t/after-migration-dispatch-fcgi-not-doing-its-job-keep-gettti/83810/1 "2006-03-19T07:29:48Z")

</div>

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](http://domain.com) shows the home page.  
and so does [Domain Blog | Domain, Website, and Ecommerce Tips for Small Businesses](http://domain.com/blog)  
and also [http://domain.com/some/other/url](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](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog: [http://frankmash.blogspot.com](http://frankmash.blogspot.com)

---

<div class="post-metadata">

**Author:** ![frank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@frank](https://www.ruby-forum.com/u/frank)\
**Post date:** [March 19, 2006, 7:29am UTC](https://www.ruby-forum.com/t/after-migration-dispatch-fcgi-not-doing-its-job-keep-gettti/83810/2 "2006-03-19T07:29:52Z")

</div>

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/](http://domain.com/) I get the home page

When I go to [http://domain.com/something/url](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](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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://domain.com) shows the home page.  
and so does [Domain Blog | Domain, Website, and Ecommerce Tips for Small Businesses](http://domain.com/blog)  
and also [http://domain.com/some/other/url](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](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog:  
http://frankmash.blogspot.com\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Rails Blog: [http://railsruby.blogspot.com](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog: [http://frankmash.blogspot.com](http://frankmash.blogspot.com)

---

<div class="post-metadata">

**Author:** ![frank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@frank](https://www.ruby-forum.com/u/frank)\
**Post date:** [March 20, 2006, 2:04am UTC](https://www.ruby-forum.com/t/after-migration-dispatch-fcgi-not-doing-its-job-keep-gettti/83810/3 "2006-03-20T02:04:48Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](http://domain.com/) I get the home page

When I go to [http://domain.com/something/url](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](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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://domain.com) shows the home page. and so does  
[Domain Blog | Domain, Website, and Ecommerce Tips for Small Businesses](http://domain.com/blog)  
and also [http://domain.com/some/other/url](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](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog:  
http://frankmash.blogspot.com\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Rails Blog: [http://railsruby.blogspot.com](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog:  
http://frankmash.blogspot.com\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Rails Blog: [http://railsruby.blogspot.com](http://railsruby.blogspot.com)  
MySQL Blog: [http://mysqldatabaseadministration.blogspot.com](http://mysqldatabaseadministration.blogspot.com)  
Linux / Security Blog: [http://frankmash.blogspot.com](http://frankmash.blogspot.com)
