gperna
(Giuseppe)
October 4, 2018, 10:18am
1
NethServer Version: 7.5 finall all upddate
Module: email, nextcloud, webmail.
Hello to all,
I would like to change the access link to nextcloud from
https://ipmyserver/nextcloud to https://ipmyserver/drive
is this done in apache files?
in the past I did this:
in the file nextcloud.conf this line was added: “Alias / drive” / usr / share / nextcloud / "
in the file default-virtualhost.inc file, these lines have been added to redirect http traffic to https;
RewriteRule ^ / drive (/.*)?$ https: //% {HTTP_HOST} / drive $ 1 [L, R = 301]
or?
tips?
thanks
m.traeumner
(Michael Träumner)
October 4, 2018, 12:42pm
2
I think you can do it in the way @giacomo posted here:
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 …
2 Likes