How do we change the name of Nextcloud to be something else in the address?

NethServer Version: NethServer release 7.3.1611 (Final)
Module: Nextcloud 11.0.2

Hello @dev_team ,

I know the location of Nextcloud is /usr/share/nextcloud/. So when I select the Nextcloud App in Applications my web address is something like:
https://myserver.mydomain.ca/nextcloud

What if I wanted to make this more custom to my office and have the web address change from being nextcloud to something else? How do I change the name of the Application Module name in Nethserver to be something else? For example:

  • Instead of Nextcloud I wanted to call mine mycloud. So my new web address would be https://myserver.mydomain.ca/mycloud.
  • And I would want the application name in the nethserver applications to show mycloud instead of Nextcloud.

I1. s this something that I could change by dropping to the command line in nethserver and making changes within nextcloud folder?
2. What happens if I make these changes and nextcloud (or nethserver) gets updated? Would all my name changes get blown away?

I know what I’m asking for is not supported but I’d like to entertain how I can make this change and know how I would support it go forward. I suppose what I’m looking to do is skin nethserver and the apps on it to be more company specific if possible.

Thank you.

You need to add an extra configuration file for httpd:

  • copy and modify current nextcloud configuration
cp /etc/httpd/conf.d/nextcloud.conf /etc/httpd/conf.d/myconf.conf
  • add the new file to configuration backup:
echo  "/etc/httpd/conf.d/myconf.conf" >> /etc/backup-config.d/nethserver-backup-config.include
  • Restart the web server:
systemctl restart httpd

This part is not customizable, changes will be lost after an update.
By the way, if you’re still interested in doing it, this is the relevant file:

Take a look here: http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-httpd-admin.html#customization

1 Like