switch to HTTPS and problem with CSS and JS

switch to HTTPS and problem with CSS and JS

by David Seguin -
Number of replies: 4

Hi I run a 3.8.2 version of moodle. As we need to use Oauth 2.0 for microsoft registration I try to SSL and HTTPS.

I add the SSL, change the wwwroot to https value. and purge caches.

When I open the HTTPS url my page load but with http link for css and js, hyperlink and everything.

I am not sure I need to use the http to https converter but when I open it he say that "This instance is still running on HTTP. You can still run this tool and external content will be changed to HTTPS, but internal content will remain on HTTP. You will need to run this script again after switching to HTTPS to convert internal content."


Thank a lot,


David

Average of ratings: -
In reply to David Seguin

Re: switch to HTTPS and problem with CSS and JS

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: switch to HTTPS and problem with CSS and JS

by David Seguin -
Thanks for your kind answer. To be honest the link you share is what I follow to switch. But my problem is that normally I have no content to update just the link to CSS and JS, I don't think that this is in the database, it's linkrd to wwwroot in config.php. But I changed it purged the caches and nothing occured still rooting on the http://.
What I am missing?
In reply to David Seguin

Re: switch to HTTPS and problem with CSS and JS

by Safeen Shun -
Have you changed the value in your config.php?
From:
$CFG->wwwroot = 'http://yousite.edu
To:
$CFG->wwwroot = 'https://yoursite.edu'

I had the same issue, I changed the value manually in the config file and it was back to normal.