Moodle
  1. Moodle
  2. MDL-26211

add detection of missing $_SERVER['HTTPS'] in nginx and other servers

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      16254

      Description

      Dongsheng Cai added a comment - 31/Jan/11 4:34 PM
      Another nginx tip of running moodle https: Moodle complains sslonlyaccess error, it is actually because the $_SERVER['HTTPS'] is not set by nginx by default, have to add "fastcgi_param HTTPS on;" to "server{}" section.

        Issue Links

          Activity

          Hide
          Petr Škoda added a comment -

          General patch solving this problem for all servers submitted.

          Thanks for the report, it helped me a lot when understanding the https reports!

          Petr

          Show
          Petr Škoda added a comment - General patch solving this problem for all servers submitted. Thanks for the report, it helped me a lot when understanding the https reports! Petr

            People

            • Assignee:
              Petr Škoda
              Reporter:
              Petr Škoda
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: