Compdigitec Labs

« | Home | »

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

  1. Open up your ProFTPd configuration file (by default it is /etc/proftpd.conf) using your favourite text editor:
    sudo nano -w /etc/proftpd.conf
  2. 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>
    
  3. 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>
    
  4. 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.
  5. Reload the FTP server and connect away:
    sudo /etc/init.d/proftpd restart

What did not work

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 | 25 Comments »

25 Responses to “Setting up a ProFTPd port-based VirtualHost”

  1. ไอติมงานแต่ง Says:
    August 3rd, 2025 at 02:31

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  2. kruger Says:
    August 5th, 2025 at 19:17

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  3. baixar Says:
    August 6th, 2025 at 11:15

    … [Trackback]

    […] Here you can find 28980 additional Info on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  4. Apple gift card Says:
    August 8th, 2025 at 23:18

    … [Trackback]

    […] Read More here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  5. find here Says:
    September 5th, 2025 at 15:54

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  6. กิฟฟารีน Says:
    September 30th, 2025 at 10:01

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  7. uspin88 Says:
    October 14th, 2025 at 12:35

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  8. โคมไฟ Says:
    October 24th, 2025 at 20:48

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  9. freshkazino.krzpv.kz Says:
    November 4th, 2025 at 19:38

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  10. lawyer Says:
    November 10th, 2025 at 19:26

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  11. รับจด อย Says:
    November 18th, 2025 at 08:32

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  12. essentials fear of god Says:
    November 27th, 2025 at 23:09

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  13. авиатор pinup Says:
    December 8th, 2025 at 22:31

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  14. tdee calculator Says:
    December 11th, 2025 at 19:23

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  15. ถังน้ำตราบ้าน Says:
    December 15th, 2025 at 19:56

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  16. มวยพักยก คืออะไร Says:
    March 7th, 2026 at 18:29

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  17. KA Gaming มาจากคำว่า “Kick-Ass” Gaming Says:
    March 16th, 2026 at 20:03

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  18. suzuran168 Says:
    March 23rd, 2026 at 20:25

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  19. บริษัทรับทำเว็บไซต์ Says:
    March 25th, 2026 at 21:59

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  20. ข่าวพรีเมียร์ลีกล่าสุด Says:
    March 31st, 2026 at 03:12

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  21. กลูต้าแบบฉีด Says:
    April 13th, 2026 at 00:43

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  22. Volnewmer ราคา Says:
    April 24th, 2026 at 18:52

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  23. คลินิกกายภาพบำบัด Says:
    May 2nd, 2026 at 10:57

    … [Trackback]

    […] There you can find 58965 additional Info on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  24. เว็บตรงฝากถอนง่าย Says:
    May 7th, 2026 at 08:15

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

  25. luxtidpro.com Says:
    May 9th, 2026 at 01:37

    … [Trackback]

    […] Here you will find 8291 more Information on that Topic: compdigitec.com/labs/2011/02/13/setting-up-a-proftpd-port-based-virtualhost/ […]

Comments