Make WordPress Core

Ticket #15733: ssl_behind_reverse_proxy.patch

File ssl_behind_reverse_proxy.patch, 450 bytes (added by costasd, 14 years ago)
  • wp-includes/functions.

    old new  
    34113411                        return true;
    34123412        } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
    34133413                return true;
    3414         }
     3414        } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
     3415                return true;
     3416        }
    34153417        return false;
    34163418}
    34173419