• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Problem with CloudFlare Free SSL (solved)

Mike

XenForo developer
Staff member
#2
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';
 

A.Chakery

Active member
#3
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.
 

BassMan

Well-known member
#4
Great, just what I need it.

@Mike , I'm using my forum on a subdomain forum.domain.com. When I go to main site https://forum.domain.com I have a yellow triangle in front, but all other pages like forum.domain.com/members have a green lock icon.

What could it be?
 

BassMan

Well-known member
#5
Ok, I think I know what it causes. On forum list I have some links that points to a non https site. I guess I need to fix this somehow, right?
 

Mike

XenForo developer
Staff member
#14
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.
 

BassMan

Well-known member
#15
@Mike , I've removed images from my forum list. I'll pm you the page where you can see the issue. Still not sure how to solve this.
 
Last edited:

rafass

Well-known member
#16
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!