Customize virtual host, apache

NethServer Version: NethServer release 7.5.1804
Module: nextcloud , email

Hi everyone,
I would like to customize the nextcloud virtual host.
http://ipserver/nexstcloud to http://ipserver/drive.
If I edit the files in /etc/httpd/conf.d the first update is rewritten.
please help.
thank you

Yes, that’s to be expected due to the configuration templating system Nethserver uses. If you want to change this behavior (and want your changes to stick), you’ll need to create a custom template incorporating the changes. See:
http://docs.nethserver.org/projects/nethserver-devel/en/latest/templates.html

thanks for you replay,
i have insert alias in /etc/httpd/conf.d/zz_nextcloud.conf the first update is rewritten.
please help me I would like to customize the nextcloud virtual host.
http://ipserver/nexstcloud to http://ipserver/drive.
i not undstand the with create a custom template .

thanks

The documentation I linked to tells you how template files work. To create a custom template, you’d first find the template fragment that needs to be changed (it will be in /etc/e-smith/templates/etc/httpd/conf.d/zz_nextcloud.conf/), make a copy of it in /etc/e-smith/templates-custom/, and edit that copy. Then expand-template /etc/httpd/conf.d/zz_nextcloud.conf and systemctl reload httpd.

1 Like

thanks danb35,