From: Silvio Rhatto Date: Fri, 18 Nov 2011 19:19:46 +0000 (-0200) Subject: Set HTTPS=on if X_FORWARDED_PROTO is https X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c40df22bc9b9730ef27be30bed41aa887d0c7022;p=puppet-apache.git Set HTTPS=on if X_FORWARDED_PROTO is https --- diff --git a/templates/apache2.conf.erb b/templates/apache2.conf.erb index ee28bdc..79b9ac1 100644 --- a/templates/apache2.conf.erb +++ b/templates/apache2.conf.erb @@ -644,3 +644,6 @@ ErrorDocument 404 http://<%= domain %>/missing.html # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ + +# See http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy +SetEnvIf X_FORWARDED_PROTO https HTTPS=on