Skip to main content

Django reverse proxy

Project description


Django reverse proxy. Allows you to proxy any website behind a prefix.


- `Python <>`_ 2.x superior to 2.5 and Django
- `Django <>`_ >= 1.2
- `restkit <>`_ >= 2.1.1


Install from sources::

$ python install

Or from Pypi::

$ easy_install -U dj-revproxy


Add `revproxy` to the list of applications::


To configure a proxy add a tupple to the REVPROXY_SETTINGS list::

("_google", ""),
("_friendpaste", ""),
("_couchdb", ""),

The configure your proxied urls automatically do something like this in
from django.conf.urls.defaults import *

import revproxy

urlpatterns = patterns('',
(r'^proxy/', include(revproxy.site_proxy.urls)),

Which will allow you to proxy Google on the url::

To add manually proxied urls and choose customs paths, do::

(r'^(?P<path>.*)', "revproxy.site_proxy", {"prefix":

` <path>` will be the path passed to the proxied location. You can also
do something like::

('^_google(.*)', "revproxy.site_proxy", {"prefix": "_google"}),

or even::

('^(?P<prefix>[^\/]*)(.*)', "revproxy.site_proxy"),

which will allows you to proxy::

Or any proxy registered.

Project details

Download files

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

Files for dj-revproxy, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dj-revproxy-0.1.0.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page