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.

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:

<VirtualHost www.example2.com>
        ServerName  "Example 2"
        DefaultRoot /var/www/example2/dev
</VirtualHost>
<VirtualHost www.example1.com>
        ServerName  "Example 1"
        DefaultServer on
        DefaultRoot /var/www/example1
</VirtualHost>

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

share|improve this question
add comment

1 Answer 1

up vote 0 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
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.