Search found 7 matches

by snathan99
Tue May 15, 2018 10:39 am
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

Tested the update and works great!

My information
First Name: Senthil
Last Name: Nathan
Website: https://realclearagent.net

Thanks so much for including in the update. Now I can update without having to edit it again.
by snathan99
Sun May 13, 2018 2:43 pm
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

I did a little bit more research and it appears there are two parameters that are widely used to determine if the front-end is HTTPS. They are HTTP_X_FORWARDED_PROTO HTTP_FRONT_END_HTTPS There are few who claim HTTP_X_FORWARDED_PROTO is the standard . I found this code snippet that suggests using bo...
by snathan99
Sun May 13, 2018 10:29 am
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

When I explored my Apache/PHP server I noticed this was set to 'on' and assumed this appears automatically when using a front-end proxy. I realized now that I had forced that header from NGINX based on this SSL-Offloader NGINX blog. So it's actually a special header inserted by NGINX. I don't believ...
by snathan99
Sat May 12, 2018 11:37 am
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

On further research I noticed there is a $_SERVER['HTTP_FRONT_END_HTTPS'] that gets set to 'on' when using a HTTPS front-end proxy. So I modified the function as below: return 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && $_SERVER['H...
by snathan99
Fri May 11, 2018 9:03 pm
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

You are statement that "I have NGINX configured to redirect all HTTP to HTTPS and this of course works is only partially true " got me thinking. Actually NGINX has nothing to do with delivering the HTTP url as opposed to HTTPS url. The server only sees HTTP. The offloading happens without any knowle...
by snathan99
Fri May 11, 2018 11:50 am
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

Re: Mixed content issue on stylesheet

1. What version of WonderCMS do you have? WonderCMS 2.5.1 2. What type of server do you have? (Apache, NGINX, IIS) NGINX reverse proxy server doing SSL offload to Apache Web Server 3. What version of PHP do you have? PHP Version 7.0.28-0ubuntu0.16.04.1 4. How are you currently redirecting the rest ...
by snathan99
Thu May 10, 2018 2:42 pm
Forum: 2.x.x support
Topic: [SOLVED] Mixed content issue on stylesheet
Replies: 13
Views: 8161

[SOLVED] Mixed content issue on stylesheet

I get mixed content warning on HTTPS On viewing source I see the below href as http instead of HTTPS. So while I get the page content, the page theme is broken. <link rel="stylesheet" href="http://realclearagent.net/themes/black-2.0/css/style.css"> Was unable to find a setting that forced HTTPS on t...