I am using this route to catch all requests:

map.connect '*request_path', :controller => 'my_controller', :action => 'my_action'

With above I can have the URLs with different extensions and nested paths like:

http://www.myapp.com/page1.html
http://www.myapp.com/page1.aspx
http://www.myapp.com/page1.net
http://www.myapp.com/abc/xyz/page1

All above URLs work fine except the ones with .php extensions. I think apache is not forwarding .php to passenger/rails. Is there a way to let apache forward the .php or, broadly say, all requests to rails, for a particular VHOST?

I am using Rails 2.3.5, Apache, and Passenger on Ubuntu.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.