I’m facing an issue with my Carbonio CE setup related to domain redirection. I’ve configured everything to use a public DNS hostname, such as mail.example1.com
. However, after logging into the web interface, the system redirects to the local server IP instead of keeping the public domain in the URL.
For example:
- I go to
https://mail.example.com
, which works fine. - After entering my credentials, it redirects to
https://192.168.x.x/static/login/
instead ofhttps://mail.example.com/static/login/
. - Similarly, after login, it continues redirecting to
https://192.168.x.x/carbonio
instead of staying athttps://mail.example.com/carbonio
.
In my nginx.log
, I’m seeing the following error message:
2024/09/25 15:28:56 [error] 53530#53530: *87242 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.45.50, server: mail.olddomain.xyz, request: "GET /zx/login/supported HTTP/2.0", upstream: "http://127.78.0.1:20008/zx/login/supported", host: "192.168.x.x", referrer: "https://192.168.x.x/static/login/"
Also in my instalation, i create an test DNS using dnsmasq (mail.olddomain.xyz), but i change the DNS to the mail.example.com
following this steps:
I cant remove this one i will crete another with more details
Hi,
This issue usually occurs when there's a misconfiguration in the publicServiceHostname and VirtualHost sections of the configuration.
The publicServiceHostname is used by the application to construct the correct URL for redirection.
The VirtualHost section, on the other hand, is used by Nginx to properly identify and route requests for the virtual domain.
Please check the settings for both of these and ensure they are properly configured. You can refer to the following documentation page for more details:
Documentation Link - https://docs.zextras.com/carbonio-ce/html/adminpanel/domains/details.html#details
Let me know if you need any further clarification!