Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im trying to configure proftpd to depend on the host the user connected to, however the server has multiple domains per ip address.

In totalcommander I connect to "" The server is configured for reverse dns ""

and %V which is "server DNS NAME" in proftpd returns "" (not the one the user connected to)

is it possible to detect what server the user CONNECTED to ?

share|improve this question
up vote 2 down vote accepted

No. FTP doesn't have the equivalent of HTTP's "host" header. If you want the same FTP server to respond differently when the user connects using different DNS domain names, you will need to assign each host name its own IP

share|improve this answer
or force them to put username for example . thank god i assumed it supports "host headers" before designing my database schema -.- – n00b32 Feb 6 '14 at 13:32
There are several ways to work around this, yes: you can use the "account" command, build the user name is ways that will make it unique globally (as you suggested) but it will not help with basic things like server banner or (more problematic) X509 certificate matching if you're using FTP(S). – Stephane Feb 6 '14 at 13:39
As of RFC 7151, there is now a HOST FTP command for supporting proper name-based FTP virtual hosts, akin to HTTP 1.1's Host header. – Castaglia Feb 28 at 1:23

As far as I know, there is no Host header in FTP. Microsoft IIS however supports virtual hosts by username ("ftp.domain.tld|username" or "ftp.domain.tld\username").

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.