Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27003

Access moodle with multiple hostnames

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Administration, Usability
    • Labels:
    • Environment:
      Linux, Apache, PHP 5.3.5
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Moodle 2.0.2 restricts access to server to one hostname specified in $CFG->wwwroot and generates a redirect page with confusing error message.
      Moodle 1.9.7 does not do this.

      FULL STEPS:
      1) install moodle with $CFG->wwwroot = "http://www.example.com/moodle";
      2) access moodle with http://example.com/moodle
      3) moodle displays text in error string wwwrootmismatch and redirects to wwwroot.

      WHAT WAS EXPECTED:
      Moodle should not restrict using multiple hostnames (ServerAliases) for various purposes:
      1) hostnames with and without "www."
      2) having an internal dedicated hostname which is always accessible, even when the "canonical" hostname that students are using is redirected via DNS to some place else.
      3) shared moodle setup, etc

      WHAT ACTUALLY HAPPENS:
      A working 1.9.7 URL schema with multiple hostnames is now broken.

      Can you please remove this restriction or at least explain why this kind of restriction is necessary and implement a config option to turn it off?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: