Hi, On Mon, Jun 27, 2016 at 10:10 PM, Alexander Farber <[email protected]> wrote: > I don't want to enforce https through redirect in HAProxy yet. > > But the good news is that after I have followed your suggestion and added > send-proxy there and also the Jetty proxy-protocol module - Wordpress > started working properly without any customization of its wp-config.php > > I have looked into wp-includes/functions.php and they also check for the > SERVER_PORT to be 443: > > function is_ssl() { > if ( isset($_SERVER['HTTPS']) ) { > if ( 'on' == strtolower($_SERVER['HTTPS']) ) > return true; > if ( '1' == $_SERVER['HTTPS'] ) > return true; > } elseif ( isset($_SERVER['SERVER_PORT']) && > ( '443' == $_SERVER['SERVER_PORT'] ) ) { > return true; > } > return false; > } > > which has fixed my problems, because the $_SERVER looks now:
Glad you got it working :) -- Simone Bordet ---- http://cometd.org http://webtide.com Developer advice, training, services and support from the Jetty & CometD experts. _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
