XF 1.4 Problem with CloudFlare Free SSL (solved)

A.Chakery

Active member
Hello,

I am having problem with cloud flare free SSL plan.

Please take a look at below test :
http://www.webpagetest.org/result/150401_6K_FGN/1/details/

As you can see both NONE SSL and SSL objects are being loaded and unfortunately considering the I have set https version of my URL in as Board URL in XenForo options.

Would you please help me to solve this issue ?

Domain : livetalk.us

Thank you
 
I assume CloudFlare isn't requesting your server over HTTPS? That's the big issue and ideally should be resolved.

If you can't, you can put this in config.php:
Code:
$_SERVER['HTTPS'] = 'on';
 
Thank you very much Mike. It solved my problem.

Just for all those who want to use CloudFlare Free SSL service ..

You should do three things to implant CF SSL :

1- Change your board URL in XF Options to https://your-domain.com

2- add below code to config.php of XF (as mike mentioned)
Code:
$_SERVER['HTTPS'] = 'on';

3- Add a Page Rule in CF to you URL (Note you should enter your url like this : your-domain.com/*


I hope it helps....

Thank you gain mike.
 
I don't know if you've resolved the issue, but I don't see the error on your site.

The proxy only changes content in messages. If you're getting the error from something other than a message, you need to change that to use HTTPS.
 
I assume CloudFlare isn't requesting your server over HTTPS? That's the big issue and ideally should be resolved.
If you can't, you can put this in config.php:
Code:
$_SERVER['HTTPS'] = 'on';
This code in my config.php have solved my issue, with Cloudflare.
Many thanks!
 
Top Bottom