Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created January 22, 2015 15:40
Show Gist options
  • Save ajaegers/7eda2eadffbc1bbcf12f to your computer and use it in GitHub Desktop.
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.
<?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