I played with my own web server (Apache + Ubuntu) and python. From what I saw, there are 3 (?) Main ways to do this:
- Apache is configured to handle .py as cgi
- Apache is configured to use mod_python, which is now deprecated (?)
- Apache is configured to use mod_wsgi
I remember reading that Django prefers mod_wsgi, and I'm interested in learning Django (I heard that their official guide is pretty excellent).
What is a βrecommendedβ setting? I suppose there really is no reason to use mod_python, but what are the differences between handling .py like cgi and mod_wsgi? Is it possible to run them in tandem (and do you want to?), Or is it just a ridiculous idea, and I have to stop thinking about such crazy things?
I think I'm actually just looking for a tutorial for Apache + Python (the links are also good) - none of the things that I have yet to come across were terribly informative - they were basically just somehow.
python apache cgi mod-wsgi
Wayne Werner Jul 23 2018-10-23T00: 00Z
source share