apache-reverse-proxy.rst
33 lines
| 908 B
| text/x-rst
|
RstLexer
r1 | Apache Reverse Proxy | |||
^^^^^^^^^^^^^^^^^^^^ | ||||
Here is a sample configuration file for using Apache as a reverse proxy. | ||||
.. code-block:: apache | ||||
<VirtualHost *:80> | ||||
ServerName hg.myserver.com | ||||
ServerAlias hg.myserver.com | ||||
r456 | ## uncomment to serve static files by Apache | |||
## ProxyPass /_static ! | ||||
r457 | ## Alias /_static /path/to/.rccontrol/enterprise-1/static | |||
r1 | ||||
<Proxy *> | ||||
Order allow,deny | ||||
Allow from all | ||||
</Proxy> | ||||
r120 | ## Important ! | |||
## Directive to properly generate url (clone url) for pylons | ||||
r1 | ProxyPreserveHost On | |||
r120 | ## RhodeCode instance running | |||
ProxyPass / http://127.0.0.1:10002/ | ||||
ProxyPassReverse / http://127.0.0.1:10002/ | ||||
r1 | ||||
r120 | ## to enable https use line below | |||
r1 | #SetEnvIf X-Url-Scheme https HTTPS=1 | |||
</VirtualHost> | ||||