Deployment changes
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...
1 mara said on 21.03.2007 @ 02:06 CET:
my favorite things about nginx are autoindexing and the ssl support. it’s just great!