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?

donatello
  • 746
  • 1
  • 9
  • 16

2 Answers2

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>
Chris Ting
  • 899
  • 4
  • 5
0

Passenger allows running Rails, Rack, and WSGI apps.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84