Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A SSL redirector for shared hosting environments, e.g. Webfaction

Project Description

A simple importd based SSL redirector. It accepts requests and redirects to the SSL version of the same page.


I needed something like this for a couple of sites that were hosted on a shared hosting provider but I wanted to only have one process doing the SSL redirects.


Simply run:


This launches ressl on port 8000 using Django’s runserver management command.

For production use it’s strongly recommended to instead use a real WSGI server like gunicorn or uWSGI , e.g.:

gunicorn ressl

To use a different port, use the server’s options, e.g.:

gunicorn -b ressl

You must set at least one envrionment variable for ressl to work: RESSL_ALLOWED_HOSTS. It’s a comma separated list of host names ressl is allowed to redirect, e.g.:,, gunicorn -b ressl

Debugging is done by setting the environment variable RESSL_DEBUG to any value:

RESSL_DEBUG=yep gunicorn -b ressl

If your site runs behind a proxy, you may have to tell ressl how to figure out if a request is SSL or not. Use the RESSL_PROXY_PROTOCOL environment variable to define it (defaults to 'HTTP_X_FORWARDED_PROTOCOL'):



Feel free to open tickets at Say thanks at

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ressl-0.2.1.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Aug 14, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting