moodle appearance changed when transitioning from http to https

moodle appearance changed when transitioning from http to https

by mimi nom -
Number of replies: 6

Hello,
The appearance of our moodle site has completely changed using the https. I entered the URL of our  moodle site in whynopadlock site in order to test it and it has posted to me 80 links that are not secure (ie: the links uses http instead of https) and I think that this is why the browser blocks these links and the result is the appearance of the site has changed (the icons don't appear, etc).

I read this page It concerns moodle version 3.1 and I have 3.0 so I don't know if the instructions on this page also apply to my version, in any case I thought it was enough to change Http: // to https: // in $ CFG-> wwwroot for a normal installation of moodle.
And as we use fortiweb in reverse-proxy mode to secure the Moodle site, I have to make the necessary configurations in Fortiweb and according to this page, set $ CFG-> sslproxy to 1 in the config.php file and disable The ssl in the server.

but I don't understand what is written in the first paragraph and also in the paragraph "Updating content" are they refer to the "replace.php" script? ?

Knowing that we use Fortiweb in reverse-proxy mode

and We have Moodle 3.02+ and Essential 3.0.0.4

Average of ratings: -
In reply to mimi nom

Re: moodle appearance changed when transitioning from http to https

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Can you provide examples of the insecure links? If they are entered in content then the replace.php tool is what you want. 

See, Search_and_replace_tool

In reply to Howard Miller

Re: moodle appearance changed when transitioning from http to https

by mimi nom -

Here are the unsecured links, I haven't revealed the domain name for security reasons, for the moment I only activated the https for the login page, and I haven't yet defined $ CFG-> sslproxy To 1 in the config.php file and the ssl is still enabled in the server:

Total number of items: 83
Number of insecure items: 80

Insecure URL: http://my_domaine_name/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/styles.php/essential/1487588524/all
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1487588524/mcore-min.js
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/lib/javascript.php/1487588524/lib/javascript-static.js
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/essential/pix/icon.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/essential/pix/separateur_horizontal.jpg
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/local/frontpage/images/cours_inactif.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/local/frontpage/images/affichage_inactif.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/local/frontpage/images/collaboration_inactif.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/local/frontpage/images/publication_inactif.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/essential/pix/pouce_page.png
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/image.php/essential/url/1487588524/icon
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/image.php/essential/forum/1487588524/icon
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/image.php/essential/page/1487588524/icon
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/image.php/essential/glossary/1487588524/icon
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/essential/pix/puce.jpg
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/lib/javascript.php/1487588524/lib/requirejs/require.min.js
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/javascript.php/essential/1487588524/footer
Found in: https://my_domaine_name/

Insecure URL: http://my_domaine_name/theme/yui_image.php?file=3.17.2/sprite_icons.png
Found in: http://my_domaine_name/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css

Insecure URL: http://my_domaine_name/theme/image.php/essential/qtype_ddmarker/1487588524/grid
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/expanded
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/collapsed
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/collapsed_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_forum/1487588524/t/subscribed
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_forum/1487588524/t/unsubscribed
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/print
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/tick_green_small
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/show
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/cross_red_small
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/item
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/mod/wiki/pix/attachment.png
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_workshop/1487588524/userplan/task-todo
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_workshop/1487588524/userplan/task-done
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_workshop/1487588524/userplan/task-fail
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/mod_workshop/1487588524/userplan/task-info
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/star-rating
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/collapsed_empty
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/loading_small
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/collapsed_empty_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/delete
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/up
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/down
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/add
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/t/copy
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/glyphicons-halflings
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/glyphicons-halflings-white
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/yui2-treeview-sprite-rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/sprite
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/ajaxloader
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/i/mnethost
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/a/search
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/path_folder
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/path_folder_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/tn
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/tn_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/tm
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/tp
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/tp_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/ln
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/ln_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/lm
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/lp
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/lp_rtl
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/loading
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/y/vline
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/link
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/alias
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/core/1487588524/s/dead
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/link_sm
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/alias_sm
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/fp/dnd_arrow
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/quiz/1487588524/navflagged
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/image.php/essential/theme/1487588524/bg/dot
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/pluginfile.php/1/theme_essential/headerbackground/1487588524/bordure.jpg
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/pluginfile.php/1/theme_essential/logo/1487588524/banner.jpg
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/font.php/essential/theme/1487588524/fontawesome-webfont.eot
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/font.php/essential/theme/1487588524/fontawesome-webfont.woff2
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/font.php/essential/theme/1487588524/fontawesome-webfont.woff
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/font.php/essential/theme/1487588524/fontawesome-webfont.ttf
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

Insecure URL: http://my_domaine_name/theme/font.php/essential/theme/1487588524/fontawesome-webfont.svg
Found in: http://my_domaine_name/theme/styles.php/essential/1487588524/all

 

 



In reply to mimi nom

Re: moodle appearance changed when transitioning from http to https

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers

As Howard said, if you go to http://yourmoodlesite.org/admin/tool/replace/index.php, you will be able to replace the old URL with the new one.

When you're at that page...

Then, if it was me, I would purge all caches. Go to Site Admin > Development > Purge all caches

Average of ratings: Useful (1)
In reply to Jon Bolton

Re: moodle appearance changed when transitioning from http to https

by mimi nom -

Thank you for these useful details. Yes, for a normal installation of moodle we will probably have to do that but as I said above we use Fortiweb for SSL offloading (in reverse-proxy mode) wich means that Fortiweb acts as the SSL/TLS terminator wich bears the load for encryption processing instead of the web server using the web server's certificate.

Therefore from what is written in this page in my case we should only set $ CFG-> sslproxy to 1 in the config.php file and not use SSL because it is Fortiweb that is responsible for encrypting and decrypting with the moodle server certificate that we have to upload in Fortiweb

 anyway, I will set up this solution and we will see



In reply to mimi nom

Re: moodle appearance changed when transitioning from http to https

by mimi nom -

My problem is solved. When I disabled the ssl module in the moodle server and I set $CFG->sslproxy to 1 In the config.php file the moodle site was accessible in https but its appearance changed. Then what I did I activated the ssl module  and I allowed secure connections to the login page by checking the box "Use HTTPS for logins" in the "HTTP security" page and I also changed http:// to https:// in $CFG->wwwroot the result is the site has regained its normal appearance with https. I didn't have to use this link: http://yourmoodlesite.org/admin/tool/replace/index.php

I have only manually modified four unsecured links that the former administrator added to customize the homepage

In reply to mimi nom

Re: moodle appearance changed when transitioning from http to https

by mimi nom -

Hello,

 I had to use this script (mymoodle.com/admin/tool/replace/index.php) this morning, because while browsing some courses, their link were in https but it shows me the yellow padlock telling me that the connection Is not secure and that some parts of the page are not secure such as the images, indeed, I copied the url of these images and I found that they were in http, so I used this script and it's ok now.

I do not understand why, I had to do all this, we have Fortiweb which is configured to make SSL offloading ie the moodle server does not use its own server certificate. Instead, FortiWeb acts like an SSL proxy for the web server, possessing the web server’s certificate and using it to:

  •  authenticate itself to clients
  •  decrypt requests
  •  encrypt responses


and according to this doc I will only have to put $ CFG-> sslproxy to 1 and not use ssl in the moodle server . anyway, I do not master Fortiweb at all, I am discovering it, maybe I have misconfigured or I have not configured some things, or this document does not apply to my version of Moodle (3.0)

Thank you all for your help