[doc, apache] add ProxyPreserveHost hint + note about https /w http configuration
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Jun 2011 15:29:55 +0200
changeset 7483 b9740d6a1ec3
parent 7482 0fa5dee25b7d
child 7484 45a350d6b22f
[doc, apache] add ProxyPreserveHost hint + note about https /w http configuration
doc/book/en/admin/instance-config.rst
--- a/doc/book/en/admin/instance-config.rst	Thu Jun 09 14:37:32 2011 +0200
+++ b/doc/book/en/admin/instance-config.rst	Thu Jun 09 15:29:55 2011 +0200
@@ -60,6 +60,7 @@
    and `https://localhost/demo` and actually running on port 8080, it
    takes to the http:::
 
+     ProxyPreserveHost On
      RewriteEngine On
      RewriteCond %{REQUEST_URI} ^/demo
      RewriteRule ^/demo$ /demo/
@@ -67,6 +68,7 @@
 
    and for the https:::
 
+     ProxyPreserveHost On
      RewriteEngine On
      RewriteCond %{REQUEST_URI} ^/ demo
      RewriteRule ^/demo$/demo/
@@ -78,6 +80,11 @@
      base-url = http://localhost/demo
      https-url = https://localhost/demo
 
+Notice that if you simply want a site accessible through https, not *both* http
+and https, simply set `base-url` to the https url and the first section into your
+apache configuration (as you would have to do for an http configuration with an
+apache front-end).
+
 Setting up the web client
 -------------------------
 :`web.embed-allowed`: