# HG changeset patch # User Marcin Kuzminski # Date 2016-08-09 21:45:31 # Node ID fc067e08158f6258e7c16454606b491ac68f8887 # Parent 912a812e2030ce5fb9a3170e26e8a14e054784ec docs: updated docs on proxy prefix for nginx and apache diff --git a/docs/admin/apache-subdirectory.rst b/docs/admin/apache-subdirectory.rst --- a/docs/admin/apache-subdirectory.rst +++ b/docs/admin/apache-subdirectory.rst @@ -16,17 +16,18 @@ Use the following example to configure A In addition to the regular Apache setup you will need to add the following lines 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. .. code-block:: ini 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 diff --git a/docs/admin/nginx-url-prefix.rst b/docs/admin/nginx-url-prefix.rst --- a/docs/admin/nginx-url-prefix.rst +++ b/docs/admin/nginx-url-prefix.rst @@ -15,7 +15,16 @@ Use the following example to configure N } 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