Thanks for your response.
My data directory is already outside the NC installation directory. I always install NC in a separate directory in /var/www
and I point symlink /var/www/oc
to it, not sure if itâs good or bad practice, but worked fine so far. Now I want to use /var/www/nc
instead of /var/www/oc
.
In Apache config I basically created a new nextcloud.conf
by copy/pasting what I have for /oc
and that works. But I also left the owncloud.conf
in place as well, that should not be a problem right?
Apache nextcloud.conf:
Alias /nc "/var/www/nc/"
<Directory /var/www/nc/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nc
SetEnv HTTP_HOME /var/www/nc
</Directory>
In Nextcloud config.php I changed all /oc
to /nc
, I restarted Apache several times and also deleted cookies from my web browser and also tried web browser private mode, so should not be a browser issue.