Ticket #50339: wordpress-tls-termination.diff
File wordpress-tls-termination.diff, 463 bytes (added by , 5 years ago) |
---|
-
wp-admin/setup-config.php
diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 4ae670d..117668e 100644
a b define( 'WP_INSTALLING', true ); 19 19 */ 20 20 define( 'WP_SETUP_CONFIG', true ); 21 21 22 /** 23 * Detect whether we are running behind a TLS Termination Proxy. 24 */ 25 if ( $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) { 26 $_SERVER['HTTPS']='on'; 27 } 28 22 29 /** 23 30 * Disable error reporting 24 31 *