On Thu, Sep 17, 2026 at 12:12 PM Sylvain Saboua <[email protected]> wrote:
>
> On my server I allocated 230GB on the SSD for
> the /var/www fstab directory.
> But most of my relevant data files will be on a
> single 16TB HDD partition mounted on the /mnt
> directory.
>
> Say I wish to use nextcloud or otherwise make a
> web server mirror of my sftp server: is there a
> straightforward way to serve files located on
> the /mnt partition ?

Have you considered just changing the chroot to point to your other directory?

We do this on a directory that's grown from "Large" to "Of Biblical
Proportion" in size where we plain ran out of space in /var.

The solution was:

1. Add another virtual disk thanks to the beauty of vmd and
2. Move the chroot to the new disk.

Sounds like your situation is similar?

>From man httpd.conf:
     chroot directory
             Set the chroot(2) directory.  If not specified, it defaults to
             /var/www, the home directory of the www user.

Reply via email to