[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best mount point for shared files



Alois Mahdal <Alois.Mahdal.1-NDMAIL@zxcvb.cz> wrote:
>   I have a server from which I want to share files via multiple
> protocols--so far it's HTTP and SMB.  The files do not reside
> on the server, they are mounted from other server via NFS. I was
> wondering: where to put the files?

I tend to create apache vHosts under /home/www/{vhost}/{docroot,logs}/,
and leave the /var/www as the empty landing for
the original configuration. Further, I replace the
/etc/apache2/sites-available/default with what amounts to a redirect to
the canonical name for the webserver/machine/whatever. I then create an
/etc/apache2/sites-available/XYZ, where XYZ is the canonical and fully
qualified name of the server, that serves from /home/www/XYZ/docroot.

When I'm sharing files out via NFS and SMB I've tended in the past to
use /home/remote/SHARE-NAME. I'd use this approach if I were also sharing
via HTTP.

When I import NFS file systems I'm a great advocate of AutoFS, with
the net mountpoint as /var/autofs/net. I then symlink the appropriate
shares back into /export, and if necessary from /export to the final
destination. On such systems, one can end up with a forest of symlinks
in /export, some of which are local and some of which may be remote.

None of this is particularly Debian, but it allows me to ignore/replace
the specific Debian configuration files while keeping reasonably to the
layout provided by Debian.

Ultimately, you need something that works for you, and preferably that
doesn't break when you upgrade one or more packages.

Chris


Reply to: