General
Linux
Python
blog
caching
databases
debugging
django
djangocon
geodjango
inauguracion
jacobkaplanmoss
misscripts
opensource
orm
postgresql
projects
python
security
software
yaco
Round-robin Django setup with nginx
Blog de Simon Willison Posted on December 21, 2009
Round-robin Django setup with nginx. An nginx trick I didn’t know: a low proxy_connect_timeout value (e.g. 2 seconds) combined with the proxy_next_upstream setting means that if one of your backends breaks a user won’t even see an error, they’ll just have a short delay before getting a response from a working server.
mod_rpaf for Apache
Blog de Simon Willison Posted on June 24, 2008
mod_rpaf for Apache. A more secure alternative to Django’s equivalent middleware: sets the REMOTE_ADDR of incoming requests from whitelisted load balancers to the X-Forwarded-For header, without any risk that if the load balancers are missing attackers could abuse it to spoof their IP addresses.


