Login Page Not Loading Correctly Behind Reverse Proxy

I am running the Nextcloud snap on Ubuntu 22.04. I am able to reach Nextcloud and login normally when accessing it directly, but when I try to access it through the reverse proxy I have setup on a separate Apache2 server, I get the following page instead of the login page. The same issue was reported here, but with no answers.

image

What does your browser console indicate? Particularly the Network tab.

What do your proxy logs indicate?

What do your Nextcloud server logs indicate?