summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-11 10:00:33 -0400
committerTim Graham <timograham@gmail.com>2015-06-11 13:44:23 -0400
commit737ddb4d24c6ee7da6def930750a44bed2b1b4ac (patch)
treec8ea2bba23ee819b3e0cb8f2d69efa1e9bb65aac /docs
parentffbb6d4742823ace864158647350e0aa0419937e (diff)
[1.8.x] Added ALLOWED_HOSTS and SERVER_EMAIL details to deployment checklist.
Backport of b34d16b78df3b424c3fae4f0b30b6b7a2cbf4543 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/deployment/checklist.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/howto/deployment/checklist.txt b/docs/howto/deployment/checklist.txt
index e4b434714e..05ea3d4fc0 100644
--- a/docs/howto/deployment/checklist.txt
+++ b/docs/howto/deployment/checklist.txt
@@ -86,6 +86,20 @@ you use a wildcard, you must perform your own validation of the ``Host`` HTTP
header, or otherwise ensure that you aren't vulnerable to this category of
attacks.
+You should also configure the Web server that sits in front of Django to
+validate the host. It should respond with a static error page or ignore
+requests for incorrect hosts instead of forwarding the request to Django. This
+way you'll avoid spurious errors in your Django logs (or emails if you have
+error reporting configured that way). For example, on nginx you might setup a
+default server to return "444 No Response" on an unrecognized host:
+
+.. code-block:: nginx
+
+ server {
+ listen 80 default_server;
+ return 444;
+ }
+
:setting:`CACHES`
-----------------
@@ -117,6 +131,10 @@ If you haven't set up backups for your database, do it right now!
If your site sends emails, these values need to be set correctly.
+By default, Django will send email from root@localhost. However, some mail
+providers reject all email from this address. To use a different sender
+address, modify the :setting:`SERVER_EMAIL` setting.
+
:setting:`STATIC_ROOT` and :setting:`STATIC_URL`
------------------------------------------------