setup https via F5

setup https via F5

by Jaifar Al Shizawi -
Number of replies: 2

Hi all, 

i am using Moodle 2.8

i have setup F5 with SSL cert  to handle all https traffic coming to https://mymoodle.org.co

I have changed the following items in config.php 

$CFG->wwwroot   = 'https://mymoodle.org.co';

$CFG->sslproxy = true;

$CFG->loginhttps = true;

but unfortuntly i am facing the following problems. 


1. some picture are not shown, for example "profile default picture" and question mark in the login page. 

2. I can't login to moodle using even superadmin. (note that, I can login if $CFG->sslproxy is disabled but still the 1 problem of pictures are not solved). 


i tried to use resorveproxy=true, but the entire moodle site is shown massage of "you can not access the website directly .... like this massage" 


what else I have missed out ?? 


regards

Jaifar


Average of ratings: -
In reply to Jaifar Al Shizawi

Re: setup https via F5

by Dave Perry -
Picture of Testers

We have our moodle published via Forefront TMG (now discontinued product, IT are looking at Sophos' equivalent with a view to that going in), so similar idea (reverse proxy).

We have NOT enabled sslproxy or anything like that. We installed the certificate onto the moodle web server, because internal DNS redirects users to the server's internal IP address and we needed the certificate internally.

Externally, you can get Forefront to rewrite all resource URLs (e.g. javascript, profile picture links) to https, which it sounds like you probably need.


HTH,
Dave

In reply to Jaifar Al Shizawi

Re: setup https via F5

by Bret Miller -
Picture of Particularly helpful Moodlers

These options are not for Moodle sites that are entirely SSL, so if you're running the whole site as https, then disable them.

$CFG->sslproxy = false;

$CFG->loginhttps = false;

The pictures issue is caused by changing the URL from http to https. Essentially, when you change from http to https, you do a "migration" (https://docs.moodle.org/28/en/Moodle_migration) even though the files don't move. To fix the URL's inside the database, you need to run the search/replace tool. To do that:

  1. Log in as a site admin
  2. Go to: https://mymoodle.org.co/admin/tool/replace/index.php
  3. Search for http://mymoodle.org.co and replace with https://mymoodle.org.co