Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 "domain1.com" The server is configured for reverse dns "domain2.com"

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

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

share|improve this question
add comment

2 Answers

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
1  
or force them to put username for example test@test.com . thank god i assumed it supports "host headers" before designing my database schema -.- –  n00b32 Feb 6 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 at 13:39
add comment

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
add comment

Your Answer

 
discard

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.