ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Forced HTTPS issues


  • 2005-03-07 19:25:35

    Forced HTTPS issues

    I had some difficulties with the install where everything went fine, but had a blank page at login. This seems to be an issue where the config.inc.php file isn't writable (permissions or RO) and then the permissions/property is changed and the install step retrys writting the configuration but it doesn't work (even though the page responds with success).

    If the config.inc.php file is checked afterward it hasn't changed, to get past this the permissions/property must be set before that step of install is executed.

    I now have a problem where all of the images and links are referenced as HTTPS regardless of my starting point. This caused nothing to work as SSL wasn't enabled on this site.

    After installing a freebie cert I can get to many more pages, but they all have difficulty because of a constant reference to HTTPS urls. I can't find a config setting for this in ATutor. I figured it work based on relative paths either way.

    http://learn.pmxlonline.com/courses
    Windows 2003 SE
    IIS 6
    PHP5
    mySQL 4.1.9

  • 2005-03-09 10:49:28

    Forced HTTPS issues

    This is probably a problem with your IIS installation

    You can change line 120 in include/lib/constants.inc.php by adding FALSE && to the front of the if-statement:
    if (FALSE && isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on') {

    that should fix it.

  • 2005-03-10 13:03:04

    IIS Problem?

    OK, so changing that line of code (well, it was line 103 in my file *shrug*) fixed it. Actually, I switched:

    if (isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on') {
    $server_protocol = 'https://';
    } else {
    $server_protocol = 'http://';
    }

    to

    if (isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on') {
    $server_protocol = 'http://';
    } else {
    $server_protocol = 'http://';
    }

    for the same difference.

    I have a great deal running on this box without issue. What problem in IIS would cause this?