-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Confusing trusted domains error message when proxied #15319
Copy link
Copy link
Closed
Milestone
Description
I am using v8 and it sits behind an Apache reverse proxy. I get the usual error:
You are accessing the server from an untrusted domain. Please contact your administrator
The crucial thing is that it shows the local IP address of the Owncloud server and the clickable link also contains the IP address. However the IP address is in the config as it should be:
'trusted_domains' => array ( '10.25.0.2' )
The actual problem is that the FQDN used by the reverse proxy is not in the trusted_domains.
Packet dumps show that the proxy is setting the Host header correctly (to the IP address) and X-Forwarded-Host (the FQDN). So I assume the trusted domains feature is also using X-Forwarded-Host (awesome) but the error is using the Host header (incorrectly).
Reactions are currently unavailable