Issue with Carbonio...
 
Notifications
Clear all

Issue with Carbonio CE Redirecting to Local IP Instead of Domain

4 Posts
2 Users
0 Reactions
117 Views
(@gsilva)
Joined: 2 months ago
Posts: 4
Topic starter  

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:

 

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:

 


   
Quote
(@gsilva)
Joined: 2 months ago
Posts: 4
Topic starter  

I cant remove this one i will crete another with more details


   
ReplyQuote
(@gsilva)
Joined: 2 months ago
Posts: 4

   
ReplyQuote
(@luca)
Joined: 4 years ago
Posts: 17
 

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!


   
ReplyQuote