View Single Post
  #36  
Old 06-09-2011, 09:41 AM
 
TA TA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 303
 

Default Re: MaxCDN Content Delivery Solution?

I can't get MaxCDN to work. When I enable it, I get an all text website, no images. If I go into https://www.domain.com, it is all back to normal, so that tells me the code is bypassing https pages, which is good.

I tried this with and with out public_html in the path. Same results.

And of course, I changed "mydomain".

Quote:
// WCM - MaxCDN Implementation
if ($_SERVER['HTTPS'] != 'on')
{
$smarty->assign("SkinDir","http://maxcdn.mydomain.com/public_html/skin1");
$smarty->assign("ImagesDir","http://maxcdn.mydomain.com/public_html/skin1/images");
}
else
{
$smarty->assign("SkinDir",$xcart_web_dir."/skin1");
$smarty->assign("ImagesDir",$xcart_web_dir."/skin1/images");
}
// WCM - MaxCDN Implementation

Quote:
// WCM - CDN Images
if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
return str_replace('/home/public_html/skin1/images/','http://maxcdn.mydomain.com/',$image_path);
// / WCM - CDN Images

Quote:
maxcdn.mydomain.com 14400 IN CNAME xxxxxxxxxxxxpullzone.mydomain.netdna-cdn.com.

In my MaxCDN CP

Quote:
Custom Domains
  • maxcdn.mydomain.com
  • CNAME to
    xxxxxxxxxxxxpullzone
    .mydomain.netdna-cdn.com

Can anybody help?
__________________
v4.7.12
v5.4.x (In Dev)
Reply With Quote