I hope you are doing well in these troubled times…
I have a problem that I tried to solve for almost a week now, but no success.
First of all, let me describe my set up. I just bought an Odroid HC1 board for installing my NextCloud at home using the corresponding NextCloudPi distribution. In addition, I have several other network-connected machines (mostly on Raspberry Pi) like a 3D printing server (Octoprint) and a Rocket.chat server. On top of that, I have a Synology NAS system (on DSM6) that I use for file storage. On the internet side, I have a domain name that points directly to my (fixed) publi IP address.
Having that many different machines to access to through internet, I decided to benefit to the incredible function of Reverse Proxy that provide my Synology. Following several tutos (including this excellent one) I could set up the reverse proxy properly and I can now access to my different machines using the corresponding subdomains.
Concerning the NextCloud install, everything is running smoothly and I can access it too with cloud.domainname.tld on all my computers. But when I tried to set up my account in the iOS app I got surprinsingly the error: The operation could not terminate. Protocol error. (in french). I tried to enter both the http and https addresses (http://cloud.domainname.tld and https://domainname.tld) but none work. I precise that I have a HTTP to HTTPS redirection on my Syno reverse proxy. I deactivated it and retried but no access either. I get the same error all the time. I also tried to desactivate the “force HTTPS” option in NextCloudPi control panel, but no further success. I also tried to remove my Let’s Encrypt certificate that I installed on the Synology for this specific domain, but same result.
Then I tried to connect to NextCloud using my browser on my iDevice, and here I got something very strange. When I validate the address in the address bar, the browser starts to load, but the address I entered immediately disappears and the loading stay stuck there. I tried on both Firefox and Safari, but same behavior. So, it seems that I am having a problem on iOS with NextCloud behind my reverse proxy.
One more precision, when I directly route the ports on my router toward the NextCloud machine however, everything works fine on iOS, in both app and browser. So, it is definitely the Reverse Proxy AND iOS AND NextCloud that are messing up all together (my other machines are connecting perfectly on iOS as expected). I do not understand anything anymore…
So, if someone has un idea on what could cause this problem and how I could solve it, I would be eternally thankful. I would love to be able to use this reverse proxy, but if you have another idea for my set up, I will be pleased to try it. Just note that 80 and 443 ports are also needed for several other machines, including my Synology. And I do not see how to set up different ports for NextCloud in the NextCloudPi control panel.
Thank you in advance! Have a lovely day! And stay healthy.
P.S. I tried to change some parameters in the apache server of the NextCloud install just to see if it could help, or for changing the ports, but I am too much a newbie to be able to succeed in something here…