secure moodle

secure moodle

by Mithu Kuruvilla -
Number of replies: 5
We are using moodle 1.8 and wanted secure login for moodle. I know in moodle we can enable HTTPS login and I enabled it. For this I have enabled ssl on apache2 . But now entire moodle site is served by HTTPS which is not acceptable since it has considerable affect on performance..

In /moodle/config.php file
$CFG->wwwroot = 'https://localhost/moodle';

If I replace https with http
ie, $CFG->wwwroot = 'http://localhost/moodle';

only login page will be served. No other pages are loading.

Now my requirement is that all the other pages except login should be served by port 80 and login should be encrypted.

What all are the changes need in apache configuration?
I want single instance of apache to serve both http and https on moodle.
Regards
Mithu Kuruvilla
Average of ratings: -
In reply to Mithu Kuruvilla

Re: secure moodle

by Matt Gibson -
you just need to have https enabled properly in apache. your $config->wwwroot should be as per your second example, with loginhttps set to true and it will work as you want it to.

Test by typing https://yoursite.com in your browser. If you get nothing, there is a problem. If it works, you are ok, and no more action should be required.
In reply to Matt Gibson

Re: secure moodle

by Mithu Kuruvilla -
Yes if I type https://<hostname> it is loading. So the whole site on HTTPS.
But I wanted http://<hostname> it should be loaded and when I try to login it must be through https. Thereafter http. I think this is what moodle supports. But I am not getting this. This is some configuration change in apache, I have tried a lot but unfortunate..

Actually now I am trying this on my laptop. Only after it got ready I can do it on live site.
Thanks and Regards
Mithu

In reply to Matt Gibson

Re: secure moodle

by Mithu Kuruvilla -
Hi Matt
I got it working now...I dont know how it is...
Previously I have enabled rewrite module.Now I disabled it.Then it worked
Thanks
Mithu
In reply to Matt Gibson

Re: secure moodle

by Mithu Kuruvilla -
Now I wanted to know whether this secure login is available in moodle1.5.4.
Or from which version its getting available. Then we can upgrade our moodle to that version.
Thanks and regards
Mithu Kuruvilla
In reply to Mithu Kuruvilla

Re: secure moodle

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I can't say what was the first version that had secure login support, but 1.5.x definitely has support for it smile

Saludos. Iñaki.