diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 01:48:59 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 01:48:59 +0000 |
| commit | 0500321a4be08ac2a1b27ac15c4194986610a39a (patch) | |
| tree | a6c99c72b2ad364ce763eb91fe13e66ad62c3c8a /docs/modpython.txt | |
| parent | b2cb66bfbca65b6b52cbfb9ef2cb71af774e0d80 (diff) | |
Added 'Serving media files' to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modpython.txt')
| -rw-r--r-- | docs/modpython.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt index 0ab37cb1af..371c207af0 100644 --- a/docs/modpython.txt +++ b/docs/modpython.txt @@ -74,3 +74,31 @@ revoke your Django privileges. .. _mod_perl: http://perl.apache.org/ .. _mod_python documentation: http://modpython.org/live/current/doc-html/directives.html + +Serving media files +=================== + +Django doesn't serve media files itself. It'd be inefficient to flow media +files through a (relatively) complex framework when much, much more well-tuned +solutions are better. + +We recommend using a separate Web server for serving media. Here are some good +choices: + +* lighttpd_ +* TUX_ +* A stripped-down version of Apache_ + +If, however, you have no option but to serve media files on the same Apache +``VirtualHost`` as Django, here's how you can turn off mod_python for a +particular part of the site:: + + <Location "/media/"> + SetHandler None + </Location> + +Just change ``Location`` to the root URL of your media files. + +.. _lighttpd: http://www.lighttpd.net/ +.. _TUX: http://en.wikipedia.org/wiki/TUX_web_server +.. _Apache: http://httpd.apache.org/ |
