Thursday 14 July 2011

RhodeCode Apache Proxy

I wanted to set up a proxy for SSL in front of my RhodeCode (and jenkins) setup using Apache in MacOSX. The following was added in production.ini under [app:main]:
filter-with = proxy-prefix

The following was added at the end:
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix                                                                                                               
prefix = /rhodecode

Under /private/etc/apache2/httpd.conf:

             DocumentRoot "/Library/WebServer/Documents"
             ServerName host
             SSLEngine on
             SSLCertificateFile host.crt
             SSLCertificateKeyFile host.key
             SSLCertificateChainFile host.ca-bundle

             
                ProxyPass http://127.0.0.1:5000
                ProxyPassReverse http://127.0.0.1:5000
                RequestHeader set X-Url-Scheme https
             



Restart Apache with:
sudo apachectl restart

No comments:

Post a Comment