anyone tried using CloudFlare with CMSMS? [solved]

Talk about new features for CMSMS and modules.
Post Reply
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

anyone tried using CloudFlare with CMSMS? [solved]

Post by geepers »

My apologies if I've posted in the wrong forum group, but nothing else seemed to be appropriate for this topic.

With Google's latest "Page Speed Test" (http://www.webpagetest.org) that was just announced/released, I happened across CloudFlare (http://www.cloudflare.com).

I'm wondering if anyone in the CMSMS community has tried this out with a CMSMS site, and if they ran into any troubles.

I've tried one with the latest version (1.9.4.2) but I seem to keep getting an error message when trying to edit a page.

The error message I get is:

Code: Select all

Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
URL: ../lib/xajax/xajax_js/xajax_core.js
I've checked on the URL and it is actually correct, I'm just suspecting there's some conflicting script or something.
Last edited by geepers on Tue Aug 02, 2011 5:27 pm, edited 1 time in total.
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

Re: anyone tried using CloudFlare with CMSMS? [solved]

Post by geepers »

Update - I found this post on hosting multiple domains on CMSMS (http://forum.cmsmadesimple.org/viewtopic.php?t=22890).

I should note that I'm running CMSMS v1.9.4.2

So, I've altered the config.php file, changing the following values:

Code: Select all

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://mydomain.com';

#SSL URL.  This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://mydomain.com';
to this

Code: Select all

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'];

#SSL URL.  This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://' . $_SERVER['HTTP_HOST'];
This allows me to access the admin section of my site using the default bypass domain specified in the CloudFlare account (the default is 'direct.mydomain.com'.

This appears to be working for me. I'll update this post should any other problems arise.
warden

Re: anyone tried using CloudFlare with CMSMS? [solved]

Post by warden »

I'm using CloudFlare as an experiment for about a week now on a main domain and a subdomain.

CloudFlare really makes a difference. The increase in speed is remarkable.

A few days before reading this post I added a section in the Wiki about Using CMSMS with CloudFlare. I think it will explain how to fix the problems you have with accessing the admin section without having to resolve to using SSL.

I hope this helps,
regards,
Ron Wardenier

Edit on 2012-12-03: The Wiki entry seems to have been removed from the CMSMS site. I stopped using CloudFlare by mid September 2011 since it cached static content only and introduced all kinds of DNS trouble seriously harming the uptime.
Last edited by warden on Mon Dec 03, 2012 8:51 pm, edited 1 time in total.
georgechr
Forum Members
Forum Members
Posts: 96
Joined: Tue Sep 13, 2011 6:02 am

Re: anyone tried using CloudFlare with CMSMS? [solved]

Post by georgechr »

using it too and very happy indeed!
Post Reply

Return to “Feature ideas”