ProFTPd: Multiple Domain VirtualHosts on one IP address
Posted
by
Badger
on Server Fault
See other posts from Server Fault
or by Badger
Published on 2012-10-09T20:28:45Z
Indexed on
2012/10/09
21:44 UTC
Read the original article
Hit count: 238
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.
© Server Fault or respective owner