Change from mydocmain.com/nextcloud to nextcloud.mydomain.com

HI,

Is there any documentation on how to change my nextcloud web address from

mydomain.com/nextcloud to

nextcloud.mydomain.com

I’ve searched several installation guides and can’t seem to see the answer.;

Thanks in advance

Matt

General info about available parameters:
https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html#proxy-configurations

If this doesn’t help you, please post again.

All I did was change my web server’s config (virtualhost for apache) and nextcloud’s config.php. In nextcloud config.php I just replaced the old url to the new one. See @Hollerauer’s reply for the link. And my virtualhost looks like this:

<VirtualHost *:443>
  ServerName nextcloud.server.lan
  DocumentRoot /var/www/nextcloud

  ...rest of the code here
</VirtualHost>