Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

seems the cherryPy have a standalone web server, is this suggested to deploy the application on Apache Server? or just use the standalone one? If so, any pros and cons between these decision? Thanks.

share|improve this question

1 Answer 1

I recommend running cherrypy behind a general-purpose web server such as apache or nginx. While cherrypy is a powerful tool, apache (or similar) is much better at some things, most notably:

  • static file serving
  • access control (HTTP authentication etc.)

For example, cherrypy can serve static files, but Apache can do it much faster (after all, that's what it was written for in the first place), and it offers a lot of flexibility, such as selecting alternative content based on Accept headers, caching, etc.

Additionally, you can add all sorts of tools - traffic analysers, load balancing, bandwidth throttling, subnet filters, etc., without changing your cherrypy application at all.

By running cherrypy behind a proper web server, you can focus on your core functionality, and leave the rest to proven technology.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.