djangosnippets.org: Latest snippets tagged with 'webfaction'https://djangosnippets.org/tags/webfaction/2009-08-28T15:50:56.812936-05:00WebFaction fixes middleware
2009-08-28T15:50:56.812936-05:00spookylukeyhttps://djangosnippets.org/snippets/1706/<p>On WebFaction, each host has it's own Apache instance, with WebFaction's main Apache instance forwarding requests. This is very useful but means that some of the original information is lost. This middleware should be installed at the top of your list to restore this lost info.</p>
<p>It includes the functionality …</p>
Freely redistributableSSL Middleware for Webfaction
2007-05-16T20:01:12.410485-05:00parlarhttps://djangosnippets.org/snippets/240/<p><em>NOTE Stephen updated his original snippet http://www.djangosnippets.org/snippets/85/ to work with WebFaction, please use his version now</em></p>
<p>This code is 95% from Stephen Zabel's snippet at http://www.djangosnippets.org/snippets/85/. However, his snippet, as it was, wouldn't work when enabling SSL for the admin site on Webfaction. For some reason, the default request.is_secure() doesn't …</p>
Freely redistributable