From 8b3d60be6d884abd28dabf4df0d83a1f9ea3b69a Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 9 Aug 2016 23:45:31 +0200 Subject: [PATCH] docs: updated docs on proxy prefix for nginx and apache --- docs/admin/apache-subdirectory.rst | 17 +++++++++-------- docs/admin/nginx-url-prefix.rst | 17 ++++++++++------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/docs/admin/apache-subdirectory.rst b/docs/admin/apache-subdirectory.rst index c7fbab64..e0159fef 100644 --- a/docs/admin/apache-subdirectory.rst +++ b/docs/admin/apache-subdirectory.rst @@ -16,17 +16,18 @@ Use the following example to configure Apache to use a URL prefix. In addition to the regular Apache setup you will need to add the following lines into the ``rhodecode.ini`` file. -* In the the ``[app:main]`` section of your ``rhodecode.ini`` file add the - following line. - -.. code-block:: ini - - filter-with = proxy-prefix - -* At the end of the ``rhodecode.ini`` file add the following section. +* Above ``[app:main]`` section of the ``rhodecode.ini`` file add the + following section if it doesn't exist yet. .. code-block:: ini [filter:proxy-prefix] use = egg:PasteDeploy#prefix prefix = / # Change into your chosen prefix + +* In the the ``[app:main]`` section of your ``rhodecode.ini`` file add the + following line. + +.. code-block:: ini + + filter-with = proxy-prefix diff --git a/docs/admin/nginx-url-prefix.rst b/docs/admin/nginx-url-prefix.rst index 96bb9c39..d64f5758 100644 --- a/docs/admin/nginx-url-prefix.rst +++ b/docs/admin/nginx-url-prefix.rst @@ -15,7 +15,16 @@ Use the following example to configure Nginx to use a URL prefix. } In addition to the Nginx configuration you will need to add the following -lines into the ``rhodecode.ini`` file. +lines (if they not exist) into the ``rhodecode.ini`` file. + +* Above ``[app:main]`` section of the ``rhodecode.ini`` file add the + following section if it doesn't exist yet. + +.. code-block:: ini + + [filter:proxy-prefix] + use = egg:PasteDeploy#prefix + prefix = / # Change into your chosen prefix * In the the ``[app:main]`` section of your ``rhodecode.ini`` file add the following line. @@ -24,10 +33,4 @@ lines into the ``rhodecode.ini`` file. filter-with = proxy-prefix -* At the end of the ``rhodecode.ini`` file add the following section. -.. code-block:: ini - - [filter:proxy-prefix] - use = egg:PasteDeploy#prefix - prefix = / # Change into your chosen prefix