timbo343 Posted January 24, 2008 Posted January 24, 2008 (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 January 24, 2008 by timbo343
Geoff Posted January 24, 2008 Posted January 24, 2008 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. 1
timbo343 Posted January 24, 2008 Author Posted January 24, 2008 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..
Jona Posted January 24, 2008 Posted January 24, 2008 (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 January 24, 2008 by Jona
timbo343 Posted January 24, 2008 Author Posted January 24, 2008 I have tried browsing to http://127.0.0.1 and i get the moodle home page without any errors Ill try the and google what you suggested and see how far i get.
Edu-IT Posted January 24, 2008 Posted January 24, 2008 If your using xampp as your WAMP stack you might already have https enabled in apache. Navigate to http://127.0.0.1 to see (although you will almost certainly get a certificate error). Should that be https://127.0.0.1?
Jona Posted January 24, 2008 Posted January 24, 2008 Yeh it should be... my bad I blame having too many windows open.... (Original post edited) Cheers Jona
timbo343 Posted January 24, 2008 Author Posted January 24, 2008 when i browse to https://127.0.0.1 all i get is The page cannot be displayed. I take it then i havent got https installed?
Jona Posted January 24, 2008 Posted January 24, 2008 I would seem not, are you using a WAMP stack package or have you manually installed apache, etc ? Cheers Jona
Geoff Posted January 24, 2008 Posted January 24, 2008 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.
timbo343 Posted January 24, 2008 Author Posted January 24, 2008 I would seem not, are you using a WAMP stack package or have you manually installed apache, etc ? Cheers Jona Im using WAMP5 which i installed and was pre configured... Ive just followed steps from this site... http://www.thompsonbd.com/tutorials/apachessl.php but still no luck with https
Jona Posted January 24, 2008 Posted January 24, 2008 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.....
timbo343 Posted January 24, 2008 Author Posted January 24, 2008 I tried the http://....:443 doesnt work. I did the document root too...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now