djangosnippets.org: Latest snippets posted by seanhttp://djangosnippets.org/users/sean/2007-11-29T05:17:06.901937-06:00seannginx x-accel-redirect protection of static files
2007-11-29T05:17:06.901937-06:00seanhttp://djangosnippets.org/snippets/491/<p>This snippet requires nginx as your front end server (for serving static files) and any django enabled server as a backend that only gets the dynamic requests (I use apache with mod_python). If you have no idea what I'm talking about, you probably won't need this snippet.
I previously tried …</p>
Freely redistributableapache authentication via cookies
2007-03-01T06:23:02.561100-06:00seanhttp://djangosnippets.org/snippets/62/<p>Enables cookie based authentication with apache.
I needed user authentication for some static files, but couldn't use the method described <a href="http://www.djangoproject.com/documentation/apache_auth/">here</a> as this prompts the user for his credentials, making him log in twice. There is some overhead in the code, because it runs all request middleware components (only session …</p>
Freely redistributable