mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
ea11d4674c
When a terminating SSL proxy is in use, the scheme and port received by the web server may be different to the wwwroot. When a reverse proxy is in use, the scheme, port, and host name received by the web server may be different to the wwwroot. In both of these cases the incoming request URI must be updated to use the correct host scheme, and port. In the case of the reverse proxy, the host name must also be updated. In both cases the actual path is expected to be correct, and neither the path nor query parameters should be modified.