I would just setup another virtual host on the same webserver, so serve the static content from "static.example.com", making this change trivial down the line. You can do it your way, but you are probably not going to see much performance gain but try:
- Setup django application virtual host on localhost:8080
- setup proxy core to have localhost:8080 as a backend
- configure a static.example.com virtualhost in lighttpd
Is there precedence for this? I.e. Does anyone "big" do this?
Sure people server static content from different server, I've heard youtube is big on that.
Any particular port I should use or shy away from using?
I would shy away from using ports other than 80, but that's just me.. :-)
Can anyone think of some downsides of going this route?
- complicated, and very little gain if you only use one application server anyways.
- all Django pages has to pass through a proxy.
- you have to ask here.. :-)