Skip to content

Instructions for domain change #11732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions admin_manual/configuration_server/domain_change.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
Domain Change
=====================

Changing the domain after the first setup is currently not supported by Nextcloud. That is mainly because Nextcloud's apps don't support changing the domain after they are set up.
Changing the domain after the first setup is quite easy.

.. note::
This documentation will get updated with steps what needs to be done if you want to change the domain as soon as this feature is available.
First, you should have the new domain ready, including DNS, a valid SSL-certificate and the apropriate virtual host entry in the webserver of your choice (apache2, nginx, etc).

Next, simply edit the main config file under (nextcloud-root)/config/config.php and add the new domain as well as the ipv4-adress (and the ipv6-address if you support ipv6) to the trusted_domains array as follows:

.. code-block::
:caption: config.php

'trusted_domains' =>
array (
0 => 'localhost',
# Change these entries
1 => 'example.com',
2 => '1.2.3.4',
),

Your nextcloud instance should now be fully accessible under the new domain.