Answer the question
In order to leave comments, you need to log in
How to correctly (!) mount the "www" folder in the user's FTP folder?
Good afternoon!
I installed the FTP client "vsFTPd" and created a user folder for it to work /home/gavrila/ftp/sites
.
How right for me! to mount a standard folder var/www
in a folder /home/gavrila/ftp/sites
so that it can be worked with through an FTP client?
Thank you!
Answer the question
In order to leave comments, you need to log in
The easiest way is to add it to mount /var/www /home/gavrila/ftp/sites
the system autostart. But this is not safe and is only suitable for playing around.
As far as I remember, to administer the site, they make a separate user for each site, and this user is exposed to the site folder as the home directory. then when logging in via FTP, the system will automatically go to the folder with the site. vsFTPd can take user configs from outside the system, which means you can not clog the system with unnecessary users. Read about adding users to vsFTPd. The main message is to force the ftp server to chroot you into the folder with the site when you login.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question