docs: fix apache as subdirectory instructions.

- fix HTTP flag
- fix badly stated force_https usage together with proxy-prefix
This commit is contained in:
Marcin Kuzminski 2016-11-17 15:57:15 +01:00
parent c152f31d62
commit 2d3588facb
4 changed files with 8 additions and 7 deletions

View file

@ -91,7 +91,7 @@ asyncore_use_poll = true
#timeout = 21600
## prefix middleware for RhodeCode, disables force_https flag.
## prefix middleware for RhodeCode.
## recommended when using proxy setup.
## allows to set RhodeCode under a prefix in server.
## eg https://server.com/<prefix>. Enable `filter-with =` option below as well.

View file

@ -91,7 +91,7 @@ max_requests_jitter = 30
timeout = 21600
## prefix middleware for RhodeCode, disables force_https flag.
## prefix middleware for RhodeCode.
## recommended when using proxy setup.
## allows to set RhodeCode under a prefix in server.
## eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.

View file

@ -7,10 +7,11 @@ Use the following example to configure Apache to use a URL prefix.
.. code-block:: apache
<Location /<someprefix> > # Change <someprefix> into your chosen prefix
ProxyPass http://127.0.0.1:5000/<someprefix>
ProxyPassReverse http://127.0.0.1:5000/<someprefix>
SetEnvIf X-Url-Scheme https HTTPS=1
<Location /<someprefix>/ # Change <someprefix> into your chosen prefix
ProxyPreserveHost On
ProxyPass "http://127.0.0.1:5000/"
ProxyPassReverse "http://127.0.0.1:5000/"
Header set X-Url-Scheme https env=HTTPS
</Location>
In addition to the regular Apache setup you will need to add the following

View file

@ -150,7 +150,7 @@ asyncore_use_poll = true
## how many workers should be spawned at a time
#cheaper-step = 1
## prefix middleware for RhodeCode, disables force_https flag.
## prefix middleware for RhodeCode.
## recommended when using proxy setup.
## allows to set RhodeCode under a prefix in server.
## eg https://server.com/<prefix>. Enable `filter-with =` option below as well.