Portal Home > Knowledgebase > Articles Database > Virtualhost on FTP: how to??


Virtualhost on FTP: how to??




Posted by oldunis, 11-10-2007, 08:39 PM
Hey there! I'm trying to configure my ftp server (lateste proftpd) and I am stucked on virtualhosts. I'd like to have two different domains have each their own anonymous access, but I only have one IP on my server. As you might know, ftp does not handle the HOST field in its header as the HTTP protocol does... so I just can't seem to get it work out... I tried adding an alias IP to my main interface, it works great of course but only when I connect from my server to my server... I don't know what else to do... Help would be really appreciated! [Edit] Currently working on debian ETCH with latest bind, mysql, proftpd and apache2 Thanks! JP

Posted by activelobby4u, 11-10-2007, 09:32 PM
http://www.proftpd.org/localsite/Use...userguide.html This should help

Posted by blessen, 11-11-2007, 07:28 AM
Its not that hard to setup Virtual hosting support in proftpd. The above provided link is the best reference material for it, since its straight from the proftpd makers This link will also help you to get some add on knowledge http://www.castaglia.org/proftpd/doc...WTO-Vhost.html

Posted by dexxtreme, 11-11-2007, 12:44 PM
From the second link ( http://www.castaglia.org/proftpd/doc...WTO-Vhost.html ): You cannot do this with just one IP address. There is no "hostname" sent when using the FTP protocol, therefore ProFTPD (nor any other FTP server) cannot differentiate when you are trying to connect to a different hostname on the same IP address. You won't be able to fully separate the anonymous FTP directories for each of your users unless you get an additional IP address on your server. Your only other option would possibly be to run an additional FTP server on a different port, but configuring that can get really tricky really fast.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
mysqld unable to start (Views: 590)