Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix simple typo, directoy -> directory #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The mod_wsgi backend will only work when using mod_wsgi in daemon mode, not in e

Firstly there are two more django settings:

* `SENDFILE_ROOT` - this is a directoy where all files that will be used with sendfile must be located
* `SENDFILE_ROOT` - this is a directory where all files that will be used with sendfile must be located
* `SENDFILE_URL` - internal URL prefix for all files served via sendfile

These settings are needed as this backend makes mod_wsgi_ send an internal redirect, so we have to convert a file path into a URL. This means that the files are visible via Apache_ by default too. So we need to get Apache_ to hide those files from anything that's not an internal redirect. To so this we can use some mod_rewrite_ magic along these lines:
Expand Down Expand Up @@ -111,7 +111,7 @@ Nginx backend

As with the mod_wsgi backend you need to set two extra settings:

* `SENDFILE_ROOT` - this is a directoy where all files that will be used with sendfile must be located
* `SENDFILE_ROOT` - this is a directory where all files that will be used with sendfile must be located
* `SENDFILE_URL` - internal URL prefix for all files served via sendfile

You then need to configure nginx to only allow internal access to the files you wish to serve. More details on this `are here <https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/>`_.
Expand Down