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 made changes - 11/Apr/07 01:48 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Not a bug [ 7 ]
Assignee Martin Dougiamas [ dougiamas ] Petr ?koda [ skodak ]
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:11 AM
Status Resolved [ 5 ] Reopened [ 4 ]
Fix Version/s 2.0 [ 10122 ]
Resolution Not a bug [ 7 ]
Petr Skoda made changes - 06/Jan/09 06:46 AM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]