##// END OF EJS Templates
licenses: Add tornado license information....
licenses: Add tornado license information. We are using a modified version of some code which originates from the tornado web server project. Therfore we include the original license information in our project to comply to the license.

File last commit:

r457:1e39daf5 default
r476:16ff155b default
Show More
apache-reverse-proxy.rst
33 lines | 908 B | text/x-rst | RstLexer
/ docs / admin / apache-reverse-proxy.rst

Apache Reverse Proxy

Here is a sample configuration file for using Apache as a reverse proxy.

<VirtualHost *:80>
        ServerName hg.myserver.com
        ServerAlias hg.myserver.com

        ## uncomment to serve static files by Apache
        ## ProxyPass /_static !
        ## Alias /_static /path/to/.rccontrol/enterprise-1/static

        <Proxy *>
          Order allow,deny
          Allow from all
        </Proxy>

        ## Important !
        ## Directive to properly generate url (clone url) for pylons
        ProxyPreserveHost On

        ## RhodeCode instance running
        ProxyPass / http://127.0.0.1:10002/
        ProxyPassReverse / http://127.0.0.1:10002/

        ## to enable https use line below
        #SetEnvIf X-Url-Scheme https HTTPS=1

</VirtualHost>