How do you configure Moodle to work behind a proxy front end server (reverse proxy)?
I have installed Moodle (3.9, if relevant) on the back end server, and have added the following Apache config on the front end proxy server (both servers are running over https):
ProxyPass "/demo" "https://moodle-backend.invalid/demo" ¶\
ProxyPassReverse "/demo" "https://moodle-backend.invalid/demo" ¶\
When I try to access the site via the URI on the front end server (ie, https://frontend.invalid/demo) this does indeed load my Moodle installation from the back end server.
However, all links and paths to objects on the server (images, CSS, JS, etc) continue to, understandably at this point, refer to the back end server hostname.
What do I need to configure in Moodle to let it know that it should act correctly for running behind the front end server?
Thanks for any help.