Created
April 8, 2016 13:48
-
-
Save rnarian/ef3da1928176352d8e704f3892cd7a62 to your computer and use it in GitHub Desktop.
Contao + Cloudflare Flexible SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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