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, no registration required.

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
add comment

1 Answer

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
  • SSL/TLS
  • 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
add comment

Your Answer

 
discard

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.