aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-02-13 15:14:46 +0100
committerMilo Casagrande <milo@ubuntu.com>2013-02-13 15:14:46 +0100
commit83e7c03ba90a4120a47bdf93fb160701f12d2c59 (patch)
tree2baadeb3b34f10a3844b6ab0083657db8de82fd7
parentbe2b23aada5508c138ab8b26d9adac014176faec (diff)
downloadrhodecode-config-83e7c03ba90a4120a47bdf93fb160701f12d2c59.tar.gz
Small tweaks to Apache conf.
-rw-r--r--config/rhodecode11
1 files changed, 9 insertions, 2 deletions
diff --git a/config/rhodecode b/config/rhodecode
index 648da96..723ac6a 100644
--- a/config/rhodecode
+++ b/config/rhodecode
@@ -7,8 +7,15 @@
Allow from all
</Proxy>
- Alias /git-ro/ /opt/rhodecode/git_repos/
- Alias / /opt/rhodecode/git_repos/
+ # Directive to properly generate url (clone url) for pylons
+ ProxyPreserveHost On
+
+ #rhodecode instance
+ ProxyPass / http://127.0.0.1:5000/
+ ProxyPassReverse / http://127.0.0.1:5000/
+
+ # To enable https use line below
+ SetEnvIf X-Url-Scheme https HTTPS=1
</VirtualHost>
<VirtualHost *:443>