Issue Details (XML | Word | Printable)

Key: MDL-6843
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Petr Skoda
Reporter: Genner Cerna
Votes: 1
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

moodle has some problem working with reverse proxy (squid)

Created: 05/Oct/06 07:15 PM   Updated: 06/Jan/09 06:42 AM
Return to search
Component/s: Lib
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

File Attachments: None
Image Attachments:

1. mdl_border_showing_up_correctly_when_added_protocol_eq_https.png
(17 kB)

2. mdl_lib_weblib_$protocol_https_added.png
(11 kB)

3. mdl_missing_border_with_squid.png
(20 kB)
Environment:
linux box

Issue Links:
Relates
 

Database: Any
Participants: Genner Cerna, Martin Dougiamas, Petr Skoda, Urs Hunkler and Wen Hao Chuang
Security Level: None
Resolved date: 06/Jan/09
Affected Branches: MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
(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!

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Urs Hunkler made changes - 06/Oct/06 02:43 PM
Field Original Value New Value
Resolution Not a bug [ 7 ]
Status Open [ 1 ] Closed [ 6 ]
Wen Hao Chuang made changes - 31/Jul/08 06:53 AM
Attachment mdl_lib_weblib_$protocol_https_added.png [ 14717 ]
Attachment mdl_border_showing_up_correctly_when_added_protocol_eq_https.png [ 14718 ]
Database [Any]
Attachment mdl_missing_border_with_squid.png [ 14716 ]
Affects Version/s 1.9.1 [ 10240 ]
Affects Version/s 1.8.6 [ 10270 ]
Affects Version/s 1.9 [ 10190 ]
Affects Version/s 1.8.1 [ 10213 ]
Component/s Lib [ 10096 ]
Affects Version/s 1.8.3 [ 10230 ]
Affects Version/s 1.8.4 [ 10242 ]
Affects Version/s 1.7.5 [ 10251 ]
Summary moodle with reverse proxy moodle has some problem working with reverse proxy (squid)
Affects Version/s 1.8 [ 10130 ]
Affects Version/s 1.7.4 [ 10243 ]
Affects Version/s 1.8.5 [ 10252 ]
Component/s Themes [ 10088 ]
Affects Version/s 1.7.3 [ 10212 ]
Affects Version/s 1.7.2 [ 10174 ]
Affects Version/s 1.6.5 [ 10210 ]
Affects Version/s 1.7 [ 10120 ]
Affects Version/s 1.6.7 [ 10250 ]
Affects Version/s 1.6.6 [ 10211 ]
Affects Version/s 1.9.2 [ 10280 ]
Description 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.... (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!
Affects Version/s 1.7.1 [ 10151 ]
Affects Version/s 1.6.3 [ 10140 ]
Assignee Urs Hunkler [ urshunkler ] Eloy Lafuente (stronk7) [ stronk7 ]
Affects Version/s 1.8.2 [ 10220 ]
Affects Version/s 1.6.4 [ 10150 ]
Priority Critical [ 2 ] Major [ 3 ]
Wen Hao Chuang made changes - 31/Jul/08 06:54 AM
Resolution Not a bug [ 7 ]
Assignee Eloy Lafuente (stronk7) [ stronk7 ] Martin Dougiamas [ dougiamas ]
Status Closed [ 6 ] Reopened [ 4 ]
Wen Hao Chuang made changes - 31/Jul/08 07:01 AM
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!
(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!
Petr Skoda made changes - 31/Dec/08 09:47 PM
Link This issue has been marked as being related by MDL-17754 [ MDL-17754 ]
Petr Skoda made changes - 06/Jan/09 06:40 AM
Assignee Martin Dougiamas [ dougiamas ] Petr ?koda [ skodak ]
Petr Skoda made changes - 06/Jan/09 06:42 AM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 2.0 [ 10122 ]