aboutsummaryrefslogtreecommitdiffstats
path: root/config/httpd-force-ssl.conf.example
diff options
context:
space:
mode:
Diffstat (limited to 'config/httpd-force-ssl.conf.example')
-rw-r--r--config/httpd-force-ssl.conf.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/httpd-force-ssl.conf.example b/config/httpd-force-ssl.conf.example
new file mode 100644
index 000000000..0e89afe62
--- /dev/null
+++ b/config/httpd-force-ssl.conf.example
@@ -0,0 +1,5 @@
+# Rewrite all proxied HTTP requests to HTTPS.
+# Only include if FORCE_SSL: true is set in general.yml
+# Expected to be found at /etc/apache2/vhost.d/alaveteli
+RewriteCond %{HTTP:X-Forwarded-Proto} !https
+RewriteRule /(.*) https://www.example.com/$1 [L,R=permanent]