tau-neutrino
tau-neutrino

Reputation: 3300

How to serve up dynamic content via django and php on same domain?

I just finished rewriting a significant portion of my web site using python's django, but I also have some legacy code in php that I haven't finished migrating over yet. Is it possible to get these two working on the same domain and if so, how do I go about doing it?

I'm running this site on a virtual Ubuntu instance and serving content up via apache. I'm also using mod_wsgi to hook into the python content.

One simplification is that the whole site, except for one sub-directory, runs off python. Let's say for arguments sake that my php code is at http://www.mysite.com/myphpapp/.

Upvotes: 1

Views: 302

Answers (1)

Paulo Scardine
Paulo Scardine

Reputation: 77339

Basically you have to configure apache to use the default handler for the path hosting your legacy code, usually adding a <directory> or <location> section to your apache site config.

Something like:

<Location "/legacy">
    SetHandler None
</Location>

Upvotes: 2

Related Questions