Moodle

moodle has some problem working with reverse proxy (squid)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major 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!

Issue Links

Activity

Hide
Urs Hunkler added a comment -

Hi Genner, what is a "reverse proxy" and how does it work? What can influence the page delivery of Moodle pages in a "reverse proxy"?

Show
Urs Hunkler added a comment - Hi Genner, what is a "reverse proxy" and how does it work? What can influence the page delivery of Moodle pages in a "reverse proxy"?
Hide
Genner Cerna added a comment -

this will accelerate moodle servers 2x.... here the complete documentation of reserve proxy

http://www.visolve.com/squid/whitepapers/reverseproxy.php

Show
Genner Cerna added a comment - this will accelerate moodle servers 2x.... here the complete documentation of reserve proxy http://www.visolve.com/squid/whitepapers/reverseproxy.php
Hide
Urs Hunkler added a comment -

Martin, I can't say anything to these reverse proxy issues. I only see Genner promoting this solution in the forums and in the same time filing bugs here, that his revers proxy solution does not work properly with Moodle. No good and seroius strategy I think

Can you please check and probably get this contradiction on the right way?

Show
Urs Hunkler added a comment - Martin, I can't say anything to these reverse proxy issues. I only see Genner promoting this solution in the forums and in the same time filing bugs here, that his revers proxy solution does not work properly with Moodle. No good and seroius strategy I think Can you please check and probably get this contradiction on the right way?
Hide
Urs Hunkler added a comment -

I just read Martín Langhoff's posting in the forums http://moodle.org/mod/forum/discuss.php?d=54123&parent=249360. I close this bug now.

Show
Urs Hunkler added a comment - I just read Martín Langhoff's posting in the forums http://moodle.org/mod/forum/discuss.php?d=54123&parent=249360. I close this bug now.
Hide
Wen Hao Chuang added a comment -

Hi Martín Langhoff, also add you to the watch list (if I may), would be interested to hear how you solved this issue and your comments, thanks!

Show
Wen Hao Chuang added a comment - Hi Martín Langhoff, also add you to the watch list (if I may), would be interested to hear how you solved this issue and your comments, thanks!
Hide
Martin Dougiamas added a comment -

So this is only a problem when your site is on https AND behind a reverse proxy?

Show
Martin Dougiamas added a comment - So this is only a problem when your site is on https AND behind a reverse proxy?
Hide
Petr Škoda (skodak) added a comment -

Reverse proxies should be now supported - see config-dist.php in 2.0dev for details.
Please note that you may use only one moodle url - reverse proxy can not be used to allow access from both LAN and WAN - details in http://docs.moodle.org/en/masquerading

Please test and reopen if needed, thanks for the report!

Show
Petr Škoda (skodak) added a comment - Reverse proxies should be now supported - see config-dist.php in 2.0dev for details. Please note that you may use only one moodle url - reverse proxy can not be used to allow access from both LAN and WAN - details in http://docs.moodle.org/en/masquerading Please test and reopen if needed, thanks for the report!

People

Vote (1)
Watch (6)

Dates

  • Created:
    Updated:
    Resolved: