Skip to main content

A URL rewriting middleware that emulates a VHM url.

Project description

He’s fearsome.

About

Mr Monster is a WSGI middleware designed to make it easy to locally test pipelines that will eventually be served behind apache with a rewrite rule in place.

The configuration is very simple, the easiest case being:

[filter:monster]
use = egg:mr.monster#rewrite
autodetect = true

which simply adds the correct VirtualHostBase/Root declarations.

Options

autodetect:

Pick a host and port from the inbound request

host:

Set the canonical hostname to pass to Zope. If used you must provide a port.

port:

Set the canonical port. If used you must provide a host.

internalpath:

A path in the form /foo/site that is the base of your application in Zope.

externalpath:

A path in the form /bar/baz to filter from a request using _vh_bar syntax.

Release history

2009-07-24

  • Initial release (Matthew Wilkes)

Project details


Download files

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

Source Distribution

mr.monster-1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

mr.monster-1.0-py2.4.egg (8.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page