Snap installation with nginx reverse proxy, problem moving data directory


whole day I try to move the data dir to some other place … no success

Using nginx with reverse proxy, nc installed with snap, ports changed to 1080/1443 … works fine.

Now I try to change the data directory.


'directory' => '/media/my/new/data',

and moving the data after stopping snap nextcloud doesn’t work.

Moving the data and using a symlink doesn’t work either.

I always end up with HTTP 502 or some internal error. Reloading nginx seems to make a difference … for a reason I do not understand.

I think my use case is not too uncommon, so maybe someone has got a solution?

  • Wolfgang