+ Post New Thread
Results 1 to 13 of 13
Virtual Learning Platforms Thread, Moodle and HTTPS in Technical; Does anyone know how to set moodle up using HTTPS at login? Ive got multiple moodle servers on laptops running ...
  1. #1
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115

    Moodle and HTTPS

    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
    Last edited by timbo343; 24th January 2008 at 12:00 PM.

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Here's the SSL configuration section of the apache virtual server that runs moodle here :

    Code:
    NameVirtualHost 10.73.24.9:443
    
    <VirtualHost 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 
    
    <IfModule mod_log_config.c>
    CustomLog /var/log/apache2/ssl_request.log \
              "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </IfModule>
    
    </VirtualHost>
    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.

  3. Thanks to Geoff from:

    webman (24th January 2008)

  4. #3
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115
    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..

  5. #4
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    467
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    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.
    Last edited by Jona; 24th January 2008 at 02:07 PM.

  6. #5
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115
    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.

  7. #6

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,113
    Thank Post
    403
    Thanked 619 Times in 566 Posts
    Rep Power
    180
    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?

  8. #7
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    467
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    Yeh it should be... my bad I blame having too many windows open....

    (Original post edited)

    Cheers
    Jona

  9. #8
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115
    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?

  10. #9
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    467
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    I would seem not, are you using a WAMP stack package or have you manually installed apache, etc ?

    Cheers
    Jona

  11. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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.

  12. #11
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115
    Quote Originally Posted by Jona View Post
    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

  13. #12
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    467
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    That tutorial if it works will create a SSL connection here:

    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.....

  14. #13
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    2,985
    Thank Post
    287
    Thanked 269 Times in 193 Posts
    Rep Power
    115
    I tried the http://....:443 doesnt work.

    I did the document root too...

SHARE:
+ Post New Thread

Similar Threads

  1. No https:// requests can get through
    By Scotmk in forum Windows
    Replies: 21
    Last Post: 20th October 2008, 05:43 PM
  2. https Question. . .
    By maniac in forum Web Development
    Replies: 7
    Last Post: 6th January 2008, 07:17 PM
  3. IE6 https problem
    By Spongor in forum Windows
    Replies: 7
    Last Post: 2nd November 2006, 09:25 AM
  4. RDP over HTTP / HTTPS
    By GrumbleDook in forum Windows
    Replies: 2
    Last Post: 3rd September 2006, 09:37 PM
  5. Getting Moodle to logon using a different https port
    By p.simmons in forum Web Development
    Replies: 9
    Last Post: 8th March 2006, 02:35 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •