Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between wsgi, python_wsgi, wsgi server and mod_wsgi?

I am very confused in below terms, 1. wsgi 2. python_wsgi 3. wsgi server 4. mod_wsgi 5. python web server gateway interface(PEP3333)

what are these for? I know wsgi is just an interface or a specification between app and server but why these so many terms are used in docs. How I am gonna use this with apache? What is wsgi server for? This is pretty confusing. Some simple and detailed explaination would be helpful.

Thanks

like image 644
anonymous255 Avatar asked Oct 15 '25 19:10

anonymous255


1 Answers

WSGI stands for Web Server Gateway Interface

It describes the way a server such as Apache communicates with a python program (web application).

A WSGI server is a server that complies with the WSGI standard.

Mod_WSGI is an Apache module that supports the WSGI standard and thus allows Apache to be a WSGI server. It allows you to host python programs through Apache.

PEP3333 is where the technical aspects of WSGI standard are defined.

like image 169
Ringil Avatar answered Oct 18 '25 08:10

Ringil