Problems with Webserver and Traefik

NethServer Version: NethServer 8
Module: Webserver 1.3.0 and Traefik 4.1.3

Hi everyone,

I have Nethserver running as a mail server with SoGo installed. My SoGo is on mail.domain.com/SoGo/. I want to include signatures in emails and for certificate and remote content reasons, i want them to be on address mail.domain.com/signatures.

In Webserver i can’t create fqdn with mail.domain.com. I tried setting a route with Traefik, but always get Bad Gateway error. How could I solve this problem?

Thank you and regards,

Luka

So your nethserver FQDN= mail.domain.com and you want to create a FQDN with webserver = mail.domain.com ?

1 Like

Hi,

the webapps require a unique FQDN so it’s not possible to use mail.domain.com for a webserver virtual host because it’s already used for SOGo.

You could set another FQDN using a subdomain for the webserver virtual host like webhost.domain.com. This will create a HTTP route like webserver1-webhost.domain.com.
Get the URL from that route (for example http://127.0.0.1:20042) and create a new HTTP route to that URL and set a path /signatures and enable “Strip URL path prefix”.

Now it should be possible to reach mail.domain.com/signatures.

Thank you very much. I will try that. Where do I find Webserver port (20042 in your case)?

Either in the automatically created HTTP route for the webserver virtual host or on CLI by executing

runagent -m webserver1 grep NGINX_TCP_PORT environment

That redirection just works with the first webserver virtual host.

It works, thank you very much for support!

2 Likes