HAProxy not working for 1 site
-
I'm successufully using HAProxy for several internally hosted sites/docker sites. I have some in Portainer on 1 server and a few on another server running Truenas. One of the sites on Truenas (Scale) is not working- NextCloud.
I can get to it via https://10.2.2.4:9001 but not https://nc.mydomain.net. Instead, when I go to the URL it redirects to the IP.
-
can you send a screenshot of frontend ACL and action
-
This post is deleted! -
@magickarle Is this what you're looking for?
-
@CreationGuy
Did you add the hostname to the Nextcloud config? -
@viragomann Yes, that is under the DNS Resolver section. When going to the domain it talks about too many redirections.
-
@CreationGuy
I'm talking about the Nextcloud config.
<rootdir>/config/config.phpsection 'trusted_domains'
-
@viragomann I forgot to do that. It's in there now. I don't get the too many redirects but now it just spins.
-
Nextcloud’s overwriteprotocol setting in config.php. Add this if HAProxy handles SSL termination:
'overwriteprotocol' => 'https',
Ensure HAProxy isn't re-redirecting to itself. This can happen if the frontend or backend rules conflict.
What's does this return:
curl -v -H "Host: nc.zzzzz.net" https://nc.zzzzz.net