If you wanna share directories that are not in the web directory and dont want to transfer all the files from there, it can be done by using
bind mounts.
Example:I have a folder called
Music which I stored in the folder
/public, so the path is
/public/Music/Now i will create a directory in
/web with the same name (doesnt have to be the same) so the path in web folder is
/web/Music/Now we need to use ssh or telnet. And write this command:
- Code: Select all
mount --bind /volume1/public/Music /volume1/web/Music
(I have only 1-rack NAS server not sure how the /volume mount point looks like on more rack servers.)
Now we have made a bind between these folders so the folder in
/web/Music/ is now pointing to the directory
/public/Music/ and is accessible through the web
http://domain or ip/Music/
This is also a way I have forced FTP users to have access to the right folders.