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 have a webserver that we are giving a consultant FTP access to. For one domain hosted on that server he needs access to a "dev" directory and for a different domain hosted on that server he needs access to a different directory. I am trying to set this up with VirtualHosts, but I am having issues. Here is the VirtualHost bit of my proftpd.conf file:

        ServerName  "Example 2"
        DefaultRoot /var/www/example2/dev
        ServerName  "Example 1"
        DefaultServer on
        DefaultRoot /var/www/example1

When I FTP to either domain I always get the first VirtualHost, even if I FTP to the second domain.

share|improve this question
up vote 1 down vote accepted

FTP dosen't work like HTTP. There is no name based virtual hosts. Only IP based. If you need same user name but different directories you can use separate TCP ports for them or more than one IP.

share|improve this answer
That's what I was starting to wonder. Thanks. – Jason Oct 10 '12 at 12:39

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.