diff docs/setup.rst @ 921:136af52f374b

merged found bugs and fixed for stable release: - added force https option into ini files for easier https usage (no need to set server headers with this options) - small css updates - fixed #96 redirect loop on files view on repositories without changesets - fixed #97 unicode string passed into server header in special cases (mod_wsgi) and server crashed with errors - fixed large tooltips problems on main page - fixed #92 whoosh indexer is more error proof
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 06 Jan 2011 19:10:25 +0100
parents 3d0661b8aaa4
children 344f74851781
line wrap: on
line diff
--- a/docs/setup.rst	Sat Dec 18 20:06:26 2010 +0100
+++ b/docs/setup.rst	Thu Jan 06 19:10:25 2011 +0100
@@ -157,6 +157,16 @@
  paster celeryd <configfile.ini>
 
 
+HTTPS support
+-------------
+
+There are two ways to enable https, first is to set HTTP_X_URL_SCHEME in
+Your http server headers, than rhodecode will recognise this headers and make
+proper https redirections, another way is to set `force_https = true` 
+in the ini cofiguration to force using https, no headers are needed than to
+enable https
+
+
 Nginx virtual host example
 --------------------------
 
@@ -210,9 +220,36 @@
 
 To not have the statics served by the application. And improve speed.
 
-Apache reverse proxy
---------------------
-Tutorial can be found here
+
+Apache virtual host example
+---------------------------
+
+Sample config for apache using proxy::
+
+<VirtualHost *:80>
+        ServerName hg.myserver.com
+        ServerAlias hg.myserver.com
+
+        <Proxy *>
+          Order allow,deny
+          Allow from all
+        </Proxy>
+
+        #important !
+        #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> 
+
+
+Additional tutorial
 http://wiki.pylonshq.com/display/pylonscookbook/Apache+as+a+reverse+proxy+for+Pylons