[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] WordPress on CentOS 7 Linux
|
Hi,
On Mon, Jun 27, 2016 at 10:10 PM, Alexander Farber
<alexander.farber@xxxxxxxxx> 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.