Nextcloud in new virtualhost

nextcloud
v7
virtualhosts

(Joachim Schweidler) #1

NethServer Version: 7.3.1611
Module: nextcloud

Hi,

i installed the virtualhost module and created a vhost ‘nextcloud.domain.xyz’. Now I want to install nextcloud within this vhost. When I install nethserver-nextcloud it´s installed in /var/www/html/nextcloud. Can I simply move the whole folder to “/var/lib/nethserver/vhost/nextcloud” or do I have to install nextcloud manually (not via nethserver-nextcloud)?

Regards,
Joachim


Nextcloud on main FQDN
Nextcloud inside virtualhost
Nextcloud inside virtualhost
(Vincenzo Turri) #2

Hi @schweidj
if you install nethserver-nextcloud and create the virtualhost nextcloud.domain.xyz,
you can create a symlink to /var/lib/nethserver/vhost/nextcloud

ln -s /var/www/html/nextcloud/ /var/lib/nethserver/vhost/nextcloud/nextcloud

and add the new domain among those accepted by nextcloud

config setprop nextcloud TrustedDomains nextcloud.domain.xyz
signal-event nethserver-nextcloud-update

if you want the root of nextcloud in nextclound.domain.xyz it can create a file /var/lib/nethserver/vhost/nextcloud/index.php containing::

<?php
   header ("location: http://nextcloud.domain.xyz/nextcloud/index.php");
?>

Nextcloud inside virtualhost
Nextcloud domen
Roundcube addressbook error when opened from virtual host
Nextcloud on startup
(Joachim Schweidler) #3

Hi @enzoturri

thank you very much.

Regards,
Joachim