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

moodle has some problem working with reverse proxy (squid)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.9, 1.9.1, 1.9.2
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      linux box

    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      (original) moodle standard and other theme is not working fine in reverse proxy.... tables are not being showned properly, alignment and redirection to http://localhost/my is not working also....

      (Wen added/modified) OK if I may I'm reopening this ticket. We had the same issue before, but we found a work-around to make it work. At around line# 293 in /lib/weblib.php, in the function of "qualified_me()", when behind squid, we had to force the $protocol to use https for our setup to work. I guess maybe this (the $protocol) could be set from the site administration level instead of we have to hard-coded this when it's behind squid. I will also be curious about Martin L's solution about making the stock moodle codes to work with squid, do you have to make any changes like we did? (see screenshots). Thanks!

      Note: This could be a squid set up issue, and if this is the case it would be really great if someone could document their squid setup/configuration in docs.moodle.org. Thanks!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10