Skip to main content

Introduction

This module provides a Django middleware class, proxiedssl.middleware.ProxiedSslWsgiMiddleware, that looks for one of two headers and sets the WSGI URL scheme to the value of the header. This allows a proxy server that handles SSL to notify the Django WSGI request handler that the end user is accessing the site through SSL.

Installation

Add proxiedssl.middleware.ProxiedSslWsgiMiddleware to the MIDDLEWARE_CLASSES tuple in your settings file. It would be best if it was first so that the is_secure method is accurate for the other middleware classes.

Requirements

Django and you currently must be using the WSGI handler either through a WSGI server or through the FCGI server which is a wrapper around the WSGI server.

TODO

  • Add a middleware class for the mod_python handler

  • Add full unit tests

0.1.1 (2012/01/05)

  • Added debug logging output for all possibilities

0.1 (2011/04/18)

  • Initial code

Metadata

Release files for proxiedssl 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxiedssl 0.1.1
File Size Uploaded
proxiedssl-0.1.1.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxiedssl 0.1.1
File Interpreter ABI Platform
proxiedssl-0.1.1-py2.6.egg Legacy Egg format - - Details

Total release size: 5.8 kB

Release files / proxiedssl-0.1.1.tar.gz

Download URL proxiedssl-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f1cafe7e93e4560d6ad029a815f33d61308b09538d4bf941bb9d63096e700401
BLAKE2b-256 checksum
How to use checksums
69e203718ce288a7b2ac483653bb1d7ce1373aee13f55c6889b5208aaae11cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / proxiedssl-0.1.1-py2.6.egg

Download URL proxiedssl-0.1.1-py2.6.egg
Size 3.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
c350b360999010c3ff0ffa6cfe23fb3bd69c4009f51e9c06d4c1e0ed86cbc363
BLAKE2b-256 checksum
How to use checksums
bf5d3ddff6b2fe71ac4174a120f1c3fbf44425e9b0711daa633ac5fa4c967bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page