« Microsoft Word 2010 and colour depth | Home | Debugging comments on old posts in WordPress »
Setting up a ProFTPd port-based VirtualHost
By admin | February 13, 2011
ProFTPd is a very powerful FTP server software that is most commonly used on Linux servers to provide a FTP service to the public, Intranet or Web Services. ProFTPd, much like its HTTP counterpart, Apache, contains the ability to host multiple different services on one physical computer by using “Virtual Hosts”, which makes it appear as it were multiple hosts hosting different content. Unfortunately, FTP does not support named-based virtual hosting like HTTP does, so to allow customers/clients to be able to FTP you must use a different port.
Procedure
- Open up your ProFTPd configuration file (by default it is /etc/proftpd.conf) using your favourite text editor:
sudo nano -w /etc/proftpd.conf
- Add a VirtualHost. The following snippet sets up a “virtual” server on Port 3003 for all bound IP addresses (IPv6 and IPv4). You can change the 3003 to the port you want to host, change the ServerName to a useful description of the host and DefaultRoot to the root of the FTP.
<VirtualHost ::0.0.0.0> Port 3003 Umask 022 ServerName "VirtualHost FTP" DefaultRoot /home/www/customer3003 </VirtualHost>
- If you do not want IPv6 support or it gives you problems on your specific host, then you can bind it to all IPv4 addresses on Port 3003 (same as above otherwise):
<VirtualHost 0.0.0.0> Port 3003 Umask 022 ServerName "VirtualHost FTP" DefaultRoot /home/www/customer3003 </VirtualHost>
- If you want, you can also modify it to bind to only certain ports to the specified port. When you are comfortable with your configuration, save the file and exit.
- Reload the FTP server and connect away:
sudo /etc/init.d/proftpd restart
What did not work
-
<VirtualHost *> Port 3003 Umask 022 ServerName "VirtualHost FTP" DefaultRoot /home/www/customer3003 </VirtualHost>
-
<VirtualHost> Port 3003 Umask 022 ServerName "VirtualHost FTP" DefaultRoot /home/www/customer3003 </VirtualHost>
- and
<VirtualHost All> Port 3003 Umask 022 ServerName "VirtualHost FTP" DefaultRoot /home/www/customer3003 </VirtualHost>
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 12 Comments »
February 7th, 2022 at 20:31
… [Trackback]
[…] Read More here to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
February 25th, 2022 at 07:14
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
February 25th, 2022 at 09:29
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
June 5th, 2022 at 02:08
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
June 9th, 2022 at 10:16
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
June 20th, 2022 at 11:10
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
July 5th, 2022 at 19:51
… [Trackback]
[…] Here you can find 9110 more Info on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
August 29th, 2022 at 06:28
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
October 15th, 2022 at 08:54
… [Trackback]
[…] Here you can find 81648 additional Info on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
October 28th, 2022 at 17:22
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
January 9th, 2023 at 11:04
… [Trackback]
[…] There you can find 99126 additional Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]
February 18th, 2023 at 03:57
… [Trackback]
[…] There you can find 42735 more Info to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]