Chapter 18.1.2. Should I Run CherryPy behind Another Web Server?

CherryPy comes with a built-in HTTP server. This HTTP server is great for doing development, but can be limited for production websites:

  • It doesn’t support full HTTP/1.1.

  • It doesn’t have any support for Secure Sockets Layer (SSL).

  • It can only listen to one port.

  • It might not be very robust in handling buggy or nonstandard HTTP requests.

  • It doesn’t add or remove threads dynamically when the traffic increases or diminishes.

For these reasons, it is probably wise to run CherryPy behind another web server, such as Apache, IIS, or lighttpd. These web servers will provide you with several important benefits:

  • You get HTTP/1.1 connections between the browser and the web client, which ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites 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.