Project

General

Profile

Css and javascripts blocked when over ssl

Added by George R about 10 years ago

Hi,

We upgraded from Redmine 1.2 to Redmine 2.4, using bitnami linux stack. After the upgrade we noticed that when accessing from https, css and javascripts are blocked. We noticed the following messages in Chrome dev console:

[blocked] The page at 'https://<public address>/redmine/' was loaded over HTTPS, but ran insecure content from 'http://<internal hostname>/redmine/stylesheets/jquery/A.jquery-ui-1.9.2.css,q1387788522.pagespeed.cf.XtTrJ-IS3Z.css': this content should also be loaded over HTTPS.

[blocked] The page at 'https://<public address>/redmine/' was loaded over HTTPS, but ran insecure content from 'http://<internal hostname>/redmine/themes/a1/stylesheets/A.application.css,q1392212539.pagespeed.cf.amss9BMoaO.css': this content should also be loaded over HTTPS.

[blocked] The page at 'https://<public address>/redmine/' was loaded over HTTPS, but ran insecure content from 'http://<internal hostname>/redmine/javascripts/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js,,q1387…s+application.js,,q1387788522,Mjm.ddF3JpZ_Wb.js.pagespeed.jc.caJxdGEq-g.js': this content should also be loaded over HTTPS.

Uncaught ReferenceError: mod_pagespeed_AGRSW0x0E2 is not defined (index):14
Uncaught ReferenceError: mod_pagespeed_QeEpldjcyZ is not defined (index):15
Uncaught ReferenceError: $ is not defined (index):17
[blocked] The page at 'https://<public address>/redmine/' was loaded over HTTPS, but ran insecure content from 'http://<internal hostname>/redmine/themes/a1/javascripts/theme.js,q1392212539.pagespeed.jm.M0Dgf2yn9O.js': this content should also be loaded over HTTPS.

Environment details are the following:

Environment:
Redmine version 2.4.2.stable
Ruby version 1.9.3-p484 (2013-11-22) [i686-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.4
Git 1.8.3
Filesystem
Redmine plugins:
redmine_dashboard 2.1

Attaching also config files from Apache.

Thank you in advance,
George


Replies (1)

RE: Css and javascripts blocked when over ssl - Added by Darth Vader over 9 years ago

I've got the same problem on:
Redmine v: 2.3.1.stable
Plugin redmine_wktime v: 1.5

When accessing wktime plugin javascript gives error:

[blocked] The page at 'https://my.redmine.site/issues/5' was loaded over HTTPS, but ran insecure content from 'http://my.redmine.site/wktime/getStatus?startDate=2014-10-30': this content should also be loaded over HTTPS.

The question is how can I configure wk_time plugin to load over https as well?
There are some configs in routes.rb file, like:

get 'wktime/getStatus', :to => 'wktime#getStatus'

But how can I set (rake?) it to load wk_time plugin over https? Don't know if routes.rb file is the right place to do it.

I would rather configure wktime plugin content to load over https than uninstall this plugin.

Any suggestion very appreciated!
Kind regards!

    (1-1/1)