Skip to content

Confusing trusted domains error message when proxied #15319

@edeca

Description

@edeca

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions