Skip to content

Instantly share code, notes, and snippets.

@rnarian
Created April 8, 2016 13:48
Show Gist options
  • Save rnarian/ef3da1928176352d8e704f3892cd7a62 to your computer and use it in GitHub Desktop.
Save rnarian/ef3da1928176352d8e704f3892cd7a62 to your computer and use it in GitHub Desktop.
Contao + Cloudflare Flexible SSL
<?php
// Put your custom configuration here
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO']) {
$_SERVER['HTTPS'] = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment