Moving Nextcloud Directory Location


I’m running headless Ubuntu 20.04 and installed Nextcloud as the root of my HTTPS installation of Apache (/var/www/nextcloud).

The data directory is in a different location and I adjusted config.php to point to it.

I use redis for cache (per se).

Everything has been working great for me.

I now want to move my nextcloud to not be the root directory … so, I just created a directory below the root and copied everything there (/var/www/nextcloud/nextcloud).

Pretty simple … but when I go to https://mysite/nextcloud/ … I get an error “file not found”.

So, the root directory location of the site must be stored somewhere in the database (postgres) or in a config file … and I just can’t find it.

Anybody know what I might try?

1 Like