by Void Main » Fri Jul 04, 2003 7:11 am
All of your domains point to the same IP address right? All of your IDs are on the same server behind that IP address so they surely could get to any of the IDs on the server. When you connect to a machine with FTP (or any other TCP based client) by name it first resolves the name to an IP address and then connects to the server via the IP address. The names are really only to keep us humans from losing our minds, they don't really mean a lot to TCP/IP based applications.
It's much like the phone system. When you dial up your friend on the telephone you have to dial his phone number and not his name right? Sure you may have a phone dialer program on your computer or PDA where you just click on his name and it dials your friends number, but it ultimately dials his number and not his name. When you dial your friend's phone number you actually have access to anyone in the house, not just your friend. Several people may live at the house and they (Dave, Jane, Bill, and Joe) could all have their names in the phone book but they would all be using the same phone number.
The Apache web server is a rare magical service that can detect what name you used in your browser and dish out content based on which name you used. That would be much like having callerID that can tell which entry in the phone book you used to call your friend. You might have been trying to call your friend's wife and found her name in the phone book. The callerID would display that the call was for you friends mom and not your friend. Apache is the only service I know of that can do this. And it can only do it because the browser and the server service are programmed to exchange this information after the initial connection is made. The FTP service could be rewritten to also exchange this information but then the client would also have to be rewritten and it just wouldn't work if you used an existing ftp client as this is behaviour is not currently built in to FTP.
On the other hand each of your friends who live in the same house could have their own phone number much like a server can have multiple IP addresses and you can tie certain services to specific IP addresses on that server. The only way I can see how you could tailor an FTP server to a specific domain would be to set up multiple IP addresses on your server and do IP based virtual hosts. Then you could have a separate FTP configuration for each IP address but it would take some xinetd tricks to do it if you want to use vsftpd for this. Again, I don't really see the point in doing this.
Last edited by
Void Main on Fri Jul 04, 2003 7:45 am, edited 1 time in total.