Deployment changes

Add new comment
Your name - will be displayed with your comment. Required
Your email address - will not be displayed. Required
Your homepage URL - your name will link to this. Optional
Your comment - textile syntax, 1000 chars max. Required

The TurboGears/CherryPy application server for this blog engine is now running behind a nginx reverse proxy on a name-based virtual host. This has several advantages:

  • Static files can be served faster by nginx.
  • I can have CherryPy running on any port and nginx will forward it transparently.
  • I can still use nginx as a normal web server at the default virtual host address.

I also plugged in a CherryPy filter that sets Last-Modified and Expires headers on all responses. Of course, this still needs to be fine-tuned, so if you seem to be getting old pages, just hit Shift-F5 (IE) or Control-R (Firefox) to get a fresh copy of a page.

Reader comments

There are 1 comment on this article. Add a comment now...

my favorite things about nginx are autoindexing and the ssl support. it’s just great!