Skip to content

Commit

Permalink
add trick to resolve 'Your server is behind a load balancer or revers…
Browse files Browse the repository at this point in the history
…e proxy. #47
  • Loading branch information
MathieuNls committed Jul 9, 2015
1 parent 6a847e9 commit 56f652c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blog/watch-tips/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,9 @@
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');

/** As recommended by unsecure-fixed */
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

0 comments on commit 56f652c

Please sign in to comment.