Skip to main content

X-Sendfile implementation in Python/WSGI

Project description

X-Sendfile is a feature in Web servers which allow you to tell the Web server which static files in the filesystem it should serve. It works like this: The Web server gets an HTTP request which is passed on to your application, the application returns the path to the file in the filesystem that should be served (if any), and finally the Web itself serves the file.

You can use this for a number of things, like controlling access to static files, or dispatching them in a custom way.

This is implemented as a Python WSGI application.

A replacement for Apache’s mod-auth-token, based on the X-Sendfile application is also part of the distribution. It can be used along with any Web application, even if it’s not written in Python.

This project is sponsored by 2degrees Limited: http://dev.2degreesnetwork.com/

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

xsendfile-1.0a1.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

xsendfile-1.0a1-py2.5.egg (11.1 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