Hi All,

This is my first attempt with CDN. I am using CloudFront and works great with http://.
Even if I have ticked the Https;// in OTHER and select Match Viewer on the AWS, when I navigate on a https:// page, it loads images, but not CSS or JS, leaving the site quite "white" :-)

I have tried to remove aggregation, nothing. Also, I have manually clicked on the files on the statistic list, and it looks like is perfectly linked - but it just wont load on the page!

Do you have an idea why?

Thank you.

CommentFileSizeAuthor
#7 china_napaka.JPG45.45 KBivanl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hiryu’s picture

Issue summary: View changes

Hi ya,

I have exactly the same problem! Have you, or someone else, found a solution for that?!?

Cheers

Gianluca

kamalrajsahu21’s picture

I have also the same issue, so can you please give us some solution for it..
Please help me out if someone finds the solution for the same.

mellenger’s picture

I was able to get this to work by disabling drupal page caching on the performance page. not ideal but I can see why this would work.

mellenger’s picture

Wim Leers’s picture

Status: Active » Closed (cannot reproduce)

Quite likely this is a bug in either Drupal 7's page caching or its CSS/JS aggregation, where it doesn't vary by protocol, even though it should.

Closing until it's proven that this is a bug in the CDN module and not Drupal core.

pmol123’s picture

In my case it was the $base_url causing the problem.
Commenting out the $base_url was not going to work for me.

Since I am using Apache the following worked for me in the settings.php file right after the $base_url setting.

Here is a section of my settings.php on my site.

$base_url = 'http://www.ExpertWitness.com';

//printf( "SERVER[REQUEST_SCHEME]=%s\n", $_SERVER['REQUEST_SCHEME'] );
if( $_SERVER['REQUEST_SCHEME'] == "https" )
   $base_url = str_replace( "http://", "https://", $base_url );

Demo:
http= http://www.ExpertWitness.com
https= https://www.ExpertWitness.com

Respectfully,

Patrick Michael O'Leary
http://www.PatrickOLeary.com

ivanl’s picture

Component: Origin Pull mode » Code
FileSize
45.45 KB

As I have the same problem on two websites I solved the problem in directAdmin panel. Solution from user pmol123 doesn't work for me.

Go to direct Admin :
User Level Login in Directadmin -> Domain Administration -> Click on desired domain -> Check "Use a symbolic link from private_html to public_html - allows for same data in http and https" -> Save"

My both domain works just fine now: https://www.gostol-tst.eu and https://www.irsmartwheel.eu

Kind regards, Ivan