Thanks, I agree. Thanks Sachin
-----Original Message----- From: Sai Pullabhotla [mailto:[email protected]] Sent: Thursday, September 22, 2011 12:05 AM To: [email protected] Subject: Re: Extracting the ftp host name from the incoming connection Unfortunately, FTP does not have what HTTP does using the headers, which allows HTTP servers host "virtual hosts" on a single physical host. The only way to do this in FTP is to run each server either on a different port (based on the port, you distinguish which domain a user trying to login belongs to) or if you have multiple network cards, map each host name to its own IP address for each network card. Hope this helps. Sai Pullabhotla On Wed, Sep 21, 2011 at 12:48 PM, Sachin Shetty <[email protected]> wrote: > Hi, > > > > In our setup will be having multiple DNS names resolve to the same IP > address of our ftp server. For example ftp1.someserver.com, > ftp2.someserver.com, ftp3.someserver.com all point to one IP address and > the > same Apache FTP Server. Even though they all resolve to the same IP > address, > functionally they will be slightly different and to implement this behavior > in our own User Manager we need to identify is a user connected to ftp1, > ftp2 or ftp3. However we could not find a way to extract the ftp host in an > incoming connection. > > > > Is there a way to do it? Something like extracting the Host header in a > http > request. I looked at the FTP protocol and network dump of a FTP connection > initiation, doesn't look like that info is even available. > > > > > > Thanks > > Sachin > > > > > >
