W3Ask











Linux Bible
#ad
How Linux works
#ad
Linux pocket guide
#ad
Linux administration
#ad
Linux Basics for Hackers
#ad
Linux programming
#ad
Linux command line
#ad


HOME  >  SOFTWARE  >  LINUX

How to link the ftp server to virtual hosts



How to link the ftp web server and the Apache virtual hosts ? This link allow the domain name to reach the files required to display the wanted website. Several steps are needed :

Add a user :

sudo useradd UserName

Give a password to this user :

sudo passwd UserName

Check if the user exists :

cat /etc/passwd

You should get something like this :

UserName:1001:1001::/home/UserName:/bin/sh

Then, you have to add these line to proftpd.conf :

sudo nano /etc/proftpd/proftpd.conf

        ServerName "Username FTP virtual"
Port 47000
MaxClients 3
MaxClientsPerHost 1
DefaultRoot /var/www/sites/username

AllowUser username
DenyAll
;

Save and restart proftpd :

sudo /etc/init.d/proftpd restart

Check that this user is well the owner of the folder :

sudo chown -R UserName UserFolderName

Note: Commissions may be earned from the links above.


This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.









Related posts:


How to install an FTP server on Debian
https://w3ask.com/install-ftp-server-debian/
The FTP server is essential to have easier access to the server and to host files that will be accessible from the Internet. First, you need ...
How to set a block, i.e. a virtual hosts with Nginx :
https://w3ask.com/set-block-virtual-hosts-nginx/
The installation of virtual hosts is an important step if we want to redirect several domain names to a same Web server, and therefore to one ...
ProFTPD SFTP virtual users redirected to www
https://w3ask.com/proftpd-sftp-virtual-users-redirected/
How to redirect virtual users to the www data folder ? You want to setup a new domain name with your FTP server in order to redirect it to ...
Default port of the FTP server
https://w3ask.com/default-port-ftp-server/
If you want to connect to your web server data file, through the ftp protocol, you can use the default port, Which is port 22. But the server ...
How to update the linux distribution of a Debian server
https://w3ask.com/update-linux-distribution-debian-server/
Access to the server through SSH (PuTTY), enter your user (root) and your password (given by the hosting service provider) : Update and upgrade ...








Linux programming
#ad


Linux command line
#ad


Linux pocket guide
#ad


Linux administration
#ad


How Linux works
#ad


Linux Bible
#ad


Linux Basics for Hackers
#ad





Languages

  • English
  • French
  • German
  • Italian
  • Dutch
  • Portuguese
  • Spanish

Know us

  • About
  • Contact
  • Categories list

Privacy

  • Privacy & Cookie Policy
  • Advertising policy
W3Ask © 2023. All rights reserved.
Disclaimer:

When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.

As an Amazon Associate I earn from qualifying purchases.

This page includes affiliate links for which the administrator of W3Ask may earn a commission at no extra cost to you should you make a purchase. These links are indicated using the hashtag #ad.


Information:

We do not assume any responsibility for the data displayed on our website. Please use at your own risk. Some or all of this data may be out of date or incomplete, please refer to the technical page on the respective manufacturer's website to find the latest up-to-date information regarding the specifics of a product.


GadgetVersus GadgetVersus France