3 ms·
If you put Apache or Nginx in front of it, why not leave out Gunicorn completely?
by TekMol 5y ago
If you put Apache or Nginx in front of it, why not leave out Gunicorn completely?
- deniska 5y agoApache has mod_wsgi, nginx not so much. mod_wsgi is a much less flexible setup when it comes to mixing and matching different python versions
- samwillis 5y agoPython has an interface called WSGI (web server gateway interface), with both Apache and Nginx you need either a none standard module for that interface or to reverse proxy to a second server that does. So same number of moving parts either way.
- loloquwowndueo 5y agoGunicorn is not just a static content server (actually I don’t think it can serve static content out of the box?) but a wsgi-compliant application server. You can’t leave it out because then, how would your python web backend run?
- TekMol 5y agoFor apache, there is libapache2-mod-wsgi-py3 Seems easier to just "apt install libapache2-mod-wsgi-py3" and put a "WSGIScriptAlias" directive into your apache config than to run another piece of software?