views:

33

answers:

1

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/.

+2  A: 

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>
Paulo Scardine
@rebus: thanks for the fix.
Paulo Scardine