Created
January 22, 2015 15:40
-
-
Save ajaegers/7eda2eadffbc1bbcf12f to your computer and use it in GitHub Desktop.
[Fix] Joomla HTTPS detection improved (detects https under haproxy HTTP_X_FORWARDED_PROTO). Fix redirects.
This file contains 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 | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; | |
class JConfig { | |
/* default datas */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment