June 16, 20251 yr Hi all,The error is stated in the title.I have the Nextcloud AIO install working perfectly with Onlyoffice running in a cloudflare tunnel. If I connect through a web browser all is fine ... if I try to connect the android app I get the "malformed server configuration".I have searched the forums and found nothing to help so am making a post. I don't fully understand this stuff so would appreciate a bit of help :)Chat GPT summarises the error as,The error “malformed server configuration” — especially when accessing Nextcloud AIO via a Cloudflare Tunnel on Android — generally points to a TLS or reverse proxy misconfiguration❌ Incorrect overwrite.cli.url, overwriteprotocol, or trusted_proxies in config.php❌ Incomplete or broken HTTPS forwarding (e.g., Cloudflared → HTTP backend)❌ Missing or misconfigured headers via NGINX or Docker labels❌ Self-signed certs or invalid TLS for Android clientsA few points As per Spaceinvader's video and his install I connect to Nextcloud to the nextcloud-aio-apache container on port 11000.I trusted my doman in config.phpInside my Cloudflare tunnel I have to leave the public service connection setting as HTTP://XX.XX.XX.XX:11000. If I change it to HTTPS it fails.Putting 2 and 2 together from the Chat GPT info and the cloudflare HTTP tunnel setting I'm guessing the failure lies in "Incomplete or broken HTTPS forwarding (e.g., Cloudflared → HTTP backend)"I don't understand how to alter the AIO container settings ... perhaps if port 11000 was mapped to 443 it would be happy?I don't fully understand where the apache stuff is in the install ... is it actually referring to NGINX in the nextcloud installation?I'll leave it there. Maybe someone else solved this... and I also don't want to put too much information (can add more as needed).Thank you in advance.
June 16, 20251 yr Author I should have added that I recently had to move the server to a new location and a new IP address.I am pretty sure that I went through everything and updated the IP addresses...But I still get this error and so far am unable to fix it.Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.
June 16, 20251 yr Community Expert Make sure your DNS entries are updated with the new IP, and that you've rebooted your android device to clear the DNS cache
June 16, 20251 yr Community Expert Sounds like maybe the trusted domains and trusted proxy needs to be updated to the IP of your unraid machine if that changed if you got new ISP equipment if you're on a different subnet.In the config.php file that is. Edited June 16, 20251 yr by MowMdown
June 16, 20251 yr Author thank you for the responses.That was all very confusing! However I managed to get it working and resolve all the Nextcloud errors, log errors, and finally to get the android apps connected!I really appreciate the responses.
September 11, 2025Sep 11 On 6/16/2025 at 9:24 AM, Moniker Lewinski said:thank you for the responses.That was all very confusing! However I managed to get it working and resolve all the Nextcloud errors, log errors, and finally to get the android apps connected!I really appreciate the responses.Any help with your solution? I'm still stuck over here.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.