Issue Details (XML | Word | Printable)

Key: MDL-9276
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Petr Skoda
Reporter: Rafael del Aguila
Votes: 0
Watchers: 2
Operations

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

Errors with Moodle behind a reverse proxy

Created: 11/Apr/07 01:16 AM   Updated: 10/Sep/09 09:11 PM
Return to search
Component/s: Course
Affects Version/s: 1.6.4
Fix Version/s: 2.0

Environment: Server: Linux with Apache 2.2
Issue Links:
Relates
 

Participants: Carlos Alexandre S. da Fonseca, Elvira Nieto, James Mitchell, Jason Dilworth, Joacim Breiler, Petr Skoda and Rafael del Aguila
Security Level: None
Resolved date: 06/Jan/09
Affected Branches: MOODLE_16_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
We use moodle behind an Apache web server configured with mod_proxy and we get error in some elements (links, styles, ...) in some pages.
The internal and external name of the published application is not the same so we have the following configuration:

in the backend web server with Moodle 1.6.4 and Apache 2.0 we have:
    in config.php
        $CFG->wwwroot = "http://external_public_name/estudios";

in the frontend web server with Apache 2.2 we have:
    in httpd.conf
         ProxyPass /estudios http://internal_server_name/moodle
         ProxyPassReverse /estudios http://internal_server_name/moodle

When we login into Moodle and go to a course, in the Topic outline screen, for example
        http://external_public_name/estudios/course/view.php?id=2

the central block styles are not aplied.

The reason is that body class is not well formed.
If we see the source code of the generated page we see over line 65

<body class="http:--internal_servere_namecourse course-2" id="http:--internal_server_namecourse-view">

I supose the correct one must be <body class="course course-2" id="course-view">

This is only one error, we have detected more of the same type in the docs link in the footer of pages and in the nav bar of archives page.

We have already tested it in Moodle 1.7 and 1.8 and the same errors ocurred.

Regards

Rafael

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda committed 29 files to 'Moodle CVS' - 06/Jan/09 06:37 AM
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support
MODIFY lib/weblib.php   Rev. 1.1198    (+24 -161 lines)
DEL user/Attic/pixgroup.php   Rev. 1.10    (+0 -0 lines)
MODIFY question/exportfile.php   Rev. 1.4    (+1 -1 lines)
MODIFY lib/filelib.php   Rev. 1.118    (+2 -2 lines)
MODIFY mod/choice/lib.php   Rev. 1.95    (+3 -3 lines)
MODIFY userfile.php   Rev. 1.8    (+2 -2 lines)
MODIFY lib/portfolio/exceptions.php   Rev. 1.4    (+3 -1 lines)
MODIFY lib/setup.php   Rev. 1.259    (+10 -8 lines)
MODIFY admin/cron.php   Rev. 1.157    (+3 -4 lines)
MODIFY rss/file.php   Rev. 1.24    (+2 -2 lines)
MODIFY course/report/participation/index.php   Rev. 1.29    (+2 -2 lines)
MODIFY lib/setuplib.php   Rev. 1.39    (+103 -2 lines)
MODIFY config-dist.php   Rev. 1.111    (+11 -1 lines)
ADD user/grouppix.php   Rev. 1.1    (+0 -0 lines)
MODIFY file.php   Rev. 1.56    (+2 -2 lines)
MODIFY lang/en_utf8/error.php   Rev. 1.152    (+4 -1 lines)
MODIFY lib/sessionlib.php   Rev. 1.16    (+2 -5 lines)
MODIFY install.php   Rev. 1.112    (+2 -2 lines)
MODIFY lib/flickrlib.php   Rev. 1.5    (+3 -2 lines)
MODIFY blog/lib.php   Rev. 1.102    (+2 -2 lines)
MODIFY lib/installlib.php   Rev. 1.8    (+25 -1 lines)
MODIFY draftfile.php   Rev. 1.8    (+2 -2 lines)
MODIFY filter/algebra/pix.php   Rev. 1.24    (+2 -2 lines)
MODIFY user/pix.php   Rev. 1.21    (+2 -2 lines)
MODIFY blocks/tags/block_tags.php   Rev. 1.14    (+3 -3 lines)
MODIFY pluginfile.php   Rev. 1.6    (+2 -2 lines)
MODIFY question/file.php   Rev. 1.9    (+1 -1 lines)
MODIFY mod/scorm/report.php   Rev. 1.58    (+2 -2 lines)
MODIFY filter/tex/pix.php   Rev. 1.34    (+2 -2 lines)
Petr Skoda committed 2 files to 'Moodle CVS' - 06/Jan/09 07:10 PM
MDL-9276 reverse proxy and normal access can not be mixed - it would valiate the one address per moodle rule, sorry
MODIFY lib/setuplib.php   Rev. 1.41    (+6 -1 lines)
MODIFY lang/en_utf8/error.php   Rev. 1.153    (+2 -1 lines)
Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 07/Jan/09 04:04 PM
MDL-17747 MDL-17791 Translated new strings for admin.
MDL-9276 Translated new strings for error messages.
MODIFY ja_utf8/admin.php   Rev. 1.331    (+6 -1 lines)
MODIFY ja_utf8/README   Rev. 1.911    (+1 -1 lines)
MODIFY ja_utf8/error.php   Rev. 1.113    (+5 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 11/Jan/09 05:33 PM
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787: new strings added
MODIFY fr_utf8/error.php   Rev. 1.156    (+4 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 11/Jan/09 05:39 PM
MDL-9276 String added
MODIFY fr_utf8/error.php   Rev. 1.157    (+2 -1 lines)