Showing results for 
Search instead for 
Did you mean: 

Mixed content not loaded


Mixed content not loaded

I'm trying to understand how does Magento generate its HTTP or HTTPS links:

Mixed Content: The page at '...' was loaded over HTTPS, but requested an insecure stylesheet '.../js/calendar/calendar-win2k-1.css'. This request has been blocked; the content must be served over HTTPS.

I can see /calendar-win2k-1.css in quite a few frontend and admin XML files, but where does it read the host from? The database? In this case, I'm used to Joomla / Drupal / Wordpress plugins doing mass search and replace, but I can't seem to find a Magento equivalent.

Thank you


Re: Mixed content not loaded

It was due to a missing configuration for the reverse proxy (h2o) I'm using.

Solved by adding to index.php, before everything else:

    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;

I suppose there are more elegant solutions, but whis worked.