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

I am searching for it on Google, but i didn't find anything. Is there a way tho set up proftpd that it will only accept a connection on and not on website.ext or

I am running proftpd on Debian 5


share|improve this question
In your example does and map to different IP addresses? – Zoredache Jan 20 '10 at 17:50
no, to the same – Timo Jan 21 '10 at 13:07

I think the last part of this article may help? It discusses listening only on specific IP addresses.

From other repsonses you've made, it seems you want it to be hostname based, and the IP addresses for these hosts are all the same. The answer is, no, you cannot do that, sorry. FTP is an old, old protocol and does not handle hostnames. The client doesn't have any mechanism to send the requested hostname along, and the server has no facility to accept it.

share|improve this answer
the article seems to point to using different IP address's, rather than host names. If all the hostnames are on the same IP then I don't think it will work. – BuildTheRobots Jan 20 '10 at 18:17
FTP is address based. It can't be made hostname based as the server does not know what hostname the client is requesting. I will update my answer to mention this. – Michael Graff Jan 20 '10 at 19:06

Use a combination of VirtualHost and Default Address blocks much in the same way you'd do Apache:


 ...config stuff...
 <Limit LOGIN>
  Order allow,deny
  Allow from none
  Deny from all

<VirtualHost> FTP configs...

Untested by me but looks like it should work.

share|improve this answer
is should try thank you! – Timo Jan 21 '10 at 13:17

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.