Follow up ...
IF you have linux and running apache but not virtual apaches on new server, you could:
Example for CentOS but similar with Ubuntu
Apache web root is /var/www/html/ Moodle Code goes in there.
moodledata in /var/www/ because Apache already knows about that area.
The trick to fake the same FQDN as your real server.
In /etc/hosts of the new server, set a map for the new server IP address to the FQDN of the old (to be decommissioned server).
Looks like:
IP.address fqdnofserver short name
An example that isn't real:
207.1.1.0 moodle.xisd.org moodle
If using Windows as your workstation:
https://helpdeskgeek.com/windows-7/windows-7-hosts-file/
and create an entry for the same above on workstation.
When you use your browser then, your host file is read first and you go not to
your real server by that FQDN, but the new server you are working on.
The thing you have to remember, you must undo the edits to your host file if you want to work on the real server.
'SoS', Ken