Brand new to Caddy, I have been using the reverse proxy built into my synology (based on nginx) just fine, but for technical reasons I cant use it anymore.
I am trying to reverse proxy several different home servers to different sub domains i have. Below are the first two I have setup, one works just fine and other other when accessed in any web browser, remote or local, tries to send me to the local ip of the server i am trying to proxy to.
mydomain.com { root /var/www gzip tls name@email.com }
sub1.mydomain.com { gzip tls name@email.com proxy / 192.168.1.245:8866 }
sub2.mydomain.com { gzip tls name@email.com proxy / https://192.168.1.208:443 transparent }
The server that works is actually my nextPVR backend (the first proxy listed), and it seems to work fine so far, although I havenât actually tried streaming any video yet. The second server is ONLYOFFICE and thats the one that keeps redirecting me to its local ip, even remotely. I do not understand whats wrong, this setup worked fine on my synology using nginx. However I dont know allot of the technical details because synology provides a GUI to interface with it.
I am new to this if you cant tell, but im learning pretty quick considering I didnât know what a reverse proxy was until a few weeks ago. Caddy seemed like the easiest option, especially considering its integration with letsencrypt. This issue is probably something simple that I overlooked, probably because I dont know what all the terminology means, despite having read the entire documentation section on how to use caddy.
Small Update:
Of course im still over here pulling my hair outâŚerrrâŚI mean tinkering, and I have so far setup 4 of my servers, nextPVR, Synology DSM, unRAID, and ONLYOFFICE, and they all work except ONLYOFFICEâŚI do not understand. Im going to make the same post over in thier forums as well, I know that onlyoffice is configured correctly becauser ive been using it for weeks just fine, in fact i was using it earlier today until I tried switching over to caddy, so I have a strong feeling that it has something to do with how caddy is handling something.