I changed the domain, but how to link the old account to use the new domain?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): Nextcloud 24.0.5
Operating system and version (eg, Ubuntu 20.04): TrueNAS 12.0U8.1 (Jail FreeBSD 12.4-RELEASE)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.53 (FreeBSD)
PHP version (eg, 7.4): 8.2.8

The issue you are facing:
For some reason, I have to change the domain. After changing the domain, I find that there is no option to edit the account profile in client.

One option is to remove account, but using this option, I have to re-sync all the files (around 400GB) and I have to delete the old files.

Do I have another option to do the job?

Is this the first time you’ve seen this error? (Y/N):N

Steps to replicate it:

  1. Change domain
  2. Edit Nextcloud config
  3. Edit Apache vhost config

The output of your Nextcloud log in Admin > Logging:
Not related

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
Not related

The output of your Apache/nginx/system log in /var/log/____:
Not related

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
Not related

You have to run your Nextcloud under the new domain. For the old one, you need to setup a permanent redirect (301), the desktop clients should update the URLs (hopefully the mobile clients as well). Since it runs through your webserver, you can see which clients do not update the URL).

@testcb00
You must configure the Nextcloud client for the new domain. With a 301-redirect you can only use it for web based rewrites.

But you can also configure both domains in config/config.php if you configure your webserver correctly.

 'trusted_domains' => 
  array (
    0 => 'cloudold.server.tld',
    1 => 'cloudnew.server.tld',
  ),

I’m still looking for a way to configure this for Nextcloud snap (two different ssl certificates) without reverse proxy. Maybe someone knows a solution by now.

No, permanent redirects are updated automatically:

Redirect may not work in my situation, as I don’t own the old domain.

So the client will need to update the host.

I just try to remove account and add the account in the latest client v3.9.4.

It seems that the “Keep local files” option do the job. In my observation, it will compare the files in the selected directory and the files in the cloud, the difference will remain as conflicts. User will need to check the conflicts files one by one.