Good day! Is it possible to configure Apache in such a way that it handles both pages generated by php and django? There are sites made on Drupal 7, now there is a need to develop a site on Django. I will be very grateful for the sensible answers that will direct my thinking process in the right direction.

Update

Can you share how to implement it? Or at least a link to the materials where you can find out how the whole thing is being set up? Customized as described here , but it didn’t lead to anything good. Drupal sites stopped working.

    2 answers 2

    Similar questions were asked on English-language sites: one , two . There in the answers there are examples of configs. In short, you need to select a specific path / alias for wsgi, and not give it all requests in the site hierarchy for processing.

    • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky ♦

    Yes, of course, you can load and use both modules, if the second one meant the module w s gi.

    update

    as far as I can see, the link provided here does not say that the proposed configuration lines should be added to a separate virtualhost . it probably makes sense to supplement your question with information of the form: there is a virtualhost of such content, I add virtualhost of such content and from the first virtualhost there appeared such and such errors in the log.