Change URL Nextcloud

#1

Hello,

i’m running nextcloud over years.
Now i would change the ULR from nextcloud.
From “cloud.test.com” to “cloud.test2.com” as example.
Which files i must change ?

Regards
Alex.

#2

Should only be:

  • nextcloud/config/config.php (trusted_domains and overwrite.cli.url)
  • web server files (server_name, regarding new cert path and cert files)
  • SSL certs (keep in mind to get new certificates for new domain)
#3

Hi Schmu,

thanks for your reply. For the new Domain i have a Wildcard Certificate :slight_smile:

I tried this changes afternoon.

Regards
Alex.

#4

You’re welcome :slight_smile:

I’m just wondering however, are you really sure your wildcard cert will still work? The way I understand wildcard here is, that you can use a wildcard cert for domain.tld for example for:
sub1.domain.tld
sub2.domain.tld
and so on.

For another-domain.tld however you would need a new wildcard cert, which can then again be used for:
sub1.another-domain.tld
sub2.another-domain.tld
and so on.

Please verify before, to avoid running into issues.

#5

Hi Schmu,

i transfered the domain and all is okay !

Thanks for your Help !

2 Likes