Hosting Python web applications

As we discussed at the beginning of this chapter, in order to run a Python web application, we need a web server to host it. There are many web servers in existence today, and you will very likely have heard of several. Popular examples are Apache, nginx (pronounced engine-x), lhttpd (pronounced lighty), and Microsoft's Internet Information Services (IIS).

There is a lot of terminology around web servers and various mechanisms they can use to invoke Python web applications. We're going to take a very brief tour of the history of web applications to help explain some of these concepts.

CGI

In the early days of the Web, web servers would mostly only be required to send clients HTML pages, or the occasional image file. ...

Get Learning Python Network Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.