From c40df22bc9b9730ef27be30bed41aa887d0c7022 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Nov 2011 17:19:46 -0200 Subject: Set HTTPS=on if X_FORWARDED_PROTO is https --- templates/apache2.conf.erb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') 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 -- cgit v1.2.3