Changing domain on VM

I’ve got a Ubuntu server which I’ve setup using the scripts.

I want to change my subdomain from cloud.domain.com to nextcloud.domain.com, how do I go about doing that without breaking anything?

Thanks

That should be an entry in the VirtualHost config, check the files in /etc/apache2/sites-available. Change the Hostname there, and also change the trusted_domains entry in the nextcloud config.

  1. Disable the current config with a2dissite yourdomain.com
  2. Download the latest ssl script and run it with sudo bash activate-ssl.sh

Hope it helps!

Worked, thanks :slight_smile:

1 Like