# ? many yunohost-VM-server with same domain ? (we are moving our server to other VM)

**URL:** https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650
**Category:** Support
**Tags:** yunohost, english
**Created:** [May 6, 2021, 10:37am UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650 "2021-05-06T10:37:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thedi](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@thedi](https://forum.yunohost.org/u/thedi)
#### Post date: [May 6, 2021, 10:37am UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/1 "2021-05-06T10:37:33Z")

</div>

Dear experts,  
we are about to move our civicrm-server to another VirtualMachine(s).

To be able to switch the domain-routing easyly it would be nice to be able to setup two (ore more Test-server VMs) using the same domain-name.  
We are using drupal7\_civicrm…

Is there a possible solution esp. considering the letsencrypt-key-files… ???

i am a newbe with yunohost 😉

best regards  
Dieter

---

<div class="post-metadata">

### Author: ![yalh76](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yalh76/32/1896_2.png) [@yalh76](https://forum.yunohost.org/u/yalh76)
#### Post date: [May 6, 2021, 7:18pm UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/2 "2021-05-06T19:18:49Z")

</div>

The only way to have several servers using the same domain name:  
Considering you have a first server working on [drupal.mydomain.net](http://drupal.mydomain.net) with IP X.X.X.X  
Install a second Yunohost server with IP Y.Y.Y.Y  
Change the A DNS records for [drupal.mydomain.net](http://drupal.mydomain.net) to go to Y.Y.Y.Y (wait few minutes or hours to let change made publicly)  
Add the domain [drupal.mydomain.net](http://drupal.mydomain.net) to the second server and a let’s encrypt certificate  
You can change back the A DNS records for [drupal.mydomain.net](http://drupal.mydomain.net) to go to Y.Y.Y.Y (wait few minutes or hours to let change made publicly)

At that point each server think it own [drupal.mydomain.net](http://drupal.mydomain.net)  
you can reach the first server(X.X.X.X) as usually  
to reach the second server, you need to add an host [drupal.mydomain.net](http://drupal.mydomain.net) with the IP of the second server (Y.Y.Y.Y) in the host file of your computer, PS: doing that when going at [https://drupal.mydomain.net](https://drupal.mydomain.net) you go to Y.Y.Y.Y, all public people continue to go to X.X.X.X

It’s a bit tricky if you are a newbie.

---

<div class="post-metadata">

### Author: ![thedi](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@thedi](https://forum.yunohost.org/u/thedi)
#### Post date: [May 7, 2021, 4:28am UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/3 "2021-05-07T04:28:39Z")

</div>

Hi yalh76,  
thank You so much for your quick and exentensive answer.  
I’ll follow this path 😉

The remaining question is:  
What will be the reaction of letsencrypt if there are several update requests for the same domain from different servers (IP-addresses) ?  
Do You expect problems or does letsencrypt not check the source of the update-requests ?

thx in advance & best regards  
Dieter

---

<div class="post-metadata">

### Author: ![mbro](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mbro](https://forum.yunohost.org/u/mbro)
#### Post date: [May 11, 2021, 8:51am UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/4 "2021-05-11T08:51:09Z")

</div>

Wouldn’t it be easier to set up [test1.mydomain.net](http://test1.mydomain.net) and [test2.mydomain.net](http://test2.mydomain.net) with their own dns-records and then, when ready to switch, tell yunohost to change the url? For example from the install on [test1.mydomain.net](http://test1.mydomain.net) to use [drupal.mydomain.net](http://drupal.mydomain.net)?

---

<div class="post-metadata">

### Author: ![thedi](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@thedi](https://forum.yunohost.org/u/thedi)
#### Post date: [May 11, 2021, 10:32am UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/5 "2021-05-11T10:32:34Z")

</div>

Tanks mbro for Your suggestion 😉  
Yes, ist would be the simpler solution.  
Unfortunately we have to keep the old servers running for some month because there are a bunch of mails out containing a optOut-link refering to these domains…  
=\> no simple solution 😉  
best regards  
Dieter

---

<div class="post-metadata">

### Author: ![yalh76](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yalh76/32/1896_2.png) [@yalh76](https://forum.yunohost.org/u/yalh76)
#### Post date: [May 13, 2021, 6:43pm UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/6 "2021-05-13T18:43:23Z")

</div>

For let’s encrypt, there a maximum request by domain =\> [Limites d'utilisation - Let's Encrypt - Certificats SSL/TLS gratuits](https://letsencrypt.org/fr/docs/rate-limits/)  
But having a request from another IP seems OK

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [May 28, 2021, 6:43pm UTC](https://forum.yunohost.org/t/many-yunohost-vm-server-with-same-domain-we-are-moving-our-server-to-other-vm/15650/7 "2021-05-28T18:43:25Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
