Jump to content

Recommended Posts

Posted (edited)

Does anyone know how to set moodle up using HTTPS at login?

 

Ive got multiple moodle servers on laptops running as tests. There is no where on the net on how to configure moodle with HTTPS.

 

Im using a WAMP server the LDAPS logins. This is working fine.

 

It woud be great if someone could PM me to talk me through it.

 

Thanks

 

Tim

Edited by timbo343
Posted

Here's the SSL configuration section of the apache virtual server that runs moodle here :

 

NameVirtualHost 10.73.24.9:443



ServerName vle.carrhill.lancs.sch.uk
DocumentRoot /var/www/vle.carrhill.lancs.sch.uk/htdocs

ErrorLog /var/log/apache2/vle.carrhill.lancs.sch.uk-error.log
CustomLog /var/log/apache2/vle.carrhill.lancs.sch.uk-access.log common


SSLEngine on

SSLCertificateFile /etc/apache2/ssl/vle.carrhill.lancs.sch.uk._20071112_125751.crt
SSLCertificateKeyFile /etc/apache2/ssl/vle.carrhill.lancs.sch.uk.key
SSLCACertificateFile /etc/apache2/ssl/IPS-IPSCABUNDLE.crt 


CustomLog /var/log/apache2/ssl_request.log \
         "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


 

Thus, once your web server is correctly configured to service HTTPS connections you just need to enable HTTPS in moodle. The setting is in Security -> HTTP Security.

  • Thanks 1
Posted

Thanks, but in which document is that?? And also do you have to use virtual servers??

 

Sorry for been a bit thick... just that im new to the whole moodle thing..

Posted (edited)

If your using xampp as your WAMP stack you might already have https enabled in apache. Navigate to https://127.0.0.1 to see (although you will almost certainly get a certificate error).

 

If you google setting up https in apache and get that set up correctly and then you can just enable it in moodle as Geoff said above.

 

The file Geoff copied is a apache config file probably from httpd.conf but if you just paste it in that won't work as you don't have the certificates, etc in place.

Edited by Jona
Posted
Thanks, but in which document is that??

 

Here on my ubuntu web server it's /etc/apache2/sites-avaliable/01_vle.carrhill.lancs.sch.uk.conf

 

And also do you have to use virtual servers??

 

Nope.

Posted

That tutorial if it works will create a SSL connection here:

 

http://www.my-domain.com:443

 

I assume you've checked that and it dosn't work??

 

If you've added (or uncommented) the load module line and SSL isn't working (as in the modules failing you will probably get an error in your logs (apache/logs/error.log).

 

Double check you did all the lines marked in yellow on that tutorial including adding a documentroot.

 

You might also be having a config file issue is WAMP maintains more than one config file.....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...