On Thu, Sep 17, 2026 at 8:11 AM Sylvain Saboua <[email protected]> wrote:

> 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 ?
>

One way to do this is to export /mnt via NFS to
localhost, then mount it under /var/www. Kind of
similar to this example from my own server:

/etc/tstab excerpt:
/dev/sd2a /nfs/archive ffs rw,...
localhost:/nfs/archive/dist/OpenBSD /var/www/ftp/pub/OpenBSD nfs ro,...

/etc/exports excerpt:
/nfs/archive/dist/OpenBSD -maproot=root -ro 127.0.0.1

-ken

Reply via email to