I want to setup a website, say http://example.com so that requests to http://example.com/a/<...> would run on a RoR app and http://example.com/b/<...> would run in a Django app.

Is it possible to configure Apache this way? How?

Would it be better to run such a site on Nginx instead because of the memory overheads involved?

link|improve this question

40% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Apache can be configured at the directory level. As RoR and Django are both frameworks, it is possible to setup a website the way you want to.

The Django documentation gives a good example of how to configure Apache at the document level:

In the end, your virtual host file should look something like:

<VirtualHost *>
    ServerName www.example.com
    <Location "/something">
        Ror setup ...
    </Location>

    <Location "/otherthing">
        Django setup ...
    </Location>
</VirtualHost>
link|improve this answer
feedback

Passenger allows running Rails, Rack, and WSGI apps.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.