[Rails] Re: executing external code
snacktime
snacktime at gmail.com
Wed Aug 9 04:44:53 GMT 2006
On 8/8/06, Manish Shah <mnshah at gmail.com> wrote:
> Here is the routing error i'm getting:
>
> ActionController::RoutingError (Recognition failed for "/myscript.php"):
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:521:in
> `recognition_failed'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:511:in
> `recognize!'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
> `dispatch'
>
>
> I'm trying to figure out how to route this request to myscript.php. Is
> the right place to do it in .htaccess or should something be done in
> httpd.conf?
The exact answer depends on what how you are running rails and php.
The simplest solution is probably just to run apache/php on the same
hostname but a different port. But if apache is already out in front
of your rails app somewhere, you could just use a simple Alias command
or something similar. The solution is fairly simple, but depends on
your exact setup.
More information about the Rails
mailing list