Answer the question
In order to leave comments, you need to log in
nginx: /message.php?from=
Porting one PHP application under RoR. At first I wanted to rewrite everything from scratch, but they demand to introduce new features as soon as possible. I decided to do this: I am looking for php scripts related to a new feature, rewriting them under the rails (working with the same database), and implementing them. The rails are spinning under nginx+passenger. The task is to translate addresses from the php space (*.php?*) to RoR REST. I see two options:
- internal rewrite from php to ror for already ported scripts
- define location with passenger _enabled on for already ported scripts and rewrite the request already in a ruby application (for example, middleware).
What would you do?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question