I’m hosting some applications on my server (185.162.249.88, server A). But now I’m running out of space so I rented another server (193.30.121.88, server B). My (important) subdomains are:
mcmyadmin.darkspirit510.de (stays on server A)
gitlab.darkspirit510.de (moves to server B)
ldap.darkspirit510.de (moves to server B)
jenkins.darkspirit510.de (moves to server B)
I copied my sites-available-configs to server B and requested my certificates like
certbot --apache -d gitlab.darkspirit510.de
The subdomains ldap and jenkins are working correctly. The subdomain gitlab.darkspirit510.de gets requested without any errors, but when opening it with any browser it says the certificate is registred to mcmyadmin.darkspirit510.de. I even tried to force the renewal, but it still points to domain on the other server.
Can anyone give me advices how to fix this issue?
Additional Info: I have root access to both servers and dns records. Both servers are running ubuntu and apache.