diff --git a/doc/integration/web_servers.rst b/doc/integration/web_servers.rst index f284f3079..eef79b526 100644 --- a/doc/integration/web_servers.rst +++ b/doc/integration/web_servers.rst @@ -112,14 +112,16 @@ This section covers two different ways of running Modoboa behind the one you prefer between `Green Unicorn `_ or `uWSGI `_. +In both cases, you'll need to download and `install nginx +`_. + Green Unicorn ============= -To use this setup, first download and install `nginx -`__ and `gunicorn +Firstly, `Download and install gunicorn `_. Then, use the following sample -gunicorn configuration (create a new file named :file:`gunicorn.conf.py` -inside Modoboa's root dir):: +gunicorn configuration (create a new file named +:file:`gunicorn.conf.py` inside Modoboa's root dir):: backlog = 2048 bind = "unix:/var/run/gunicorn/modoboa.sock" @@ -213,8 +215,7 @@ uwsgi: Use uwsgi 1.2.6 or newer. If you do not, you *will* run into problems. Modoboa will fail in obscure ways. -To use this setup, first download and install `nginx -`__ and `uwsgi +To use this setup, first `download and install uwsgi `_. Here is a sample nginx configuration:: @@ -256,11 +257,14 @@ Here is a sample nginx configuration:: location / { include uwsgi_params; uwsgi_pass ; - uwsgi_param UWSGI_SCRIPT modoboa_server.wsgi:application + uwsgi_param UWSGI_SCRIPT .wsgi:application uwsgi_param UWSGI_SCHEME https; } } +```` must be replaced by the value you used +when :ref:`you deployed your instance `. + If you do not plan to use SSL then change the listen directive to ``listen 80;`` and delete each of the following directives:: @@ -272,7 +276,7 @@ If you do not plan to use SSL then change the listen directive to If you do plan to use SSL, you'll have to generate a certificate and a key. `This article -`__ +`_ contains information about how to do it. Make sure to replace the ``<...>`` in the sample configuration with