0

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?

2 Answers 2

1

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>
0

Passenger allows running Rails, Rack, and WSGI apps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .