Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ProFTPd Virtual Hosts 1

Status
Not open for further replies.

fluid11

IS-IT--Management
Jan 22, 2002
1,627
0
0
US
I'm setting up a Red Hat Linux 7.1 server running ProFTPd 1.2.4. The FTP server will have virtual hosts. I've set up plenty of ProFTPd servers in the past, but never any with virtual hosts. First off, from what I understand, you specify the different virtual servers by the port you connect on?

I want it to look like I have 2 different servers. I want both servers to have different "DefaultRoot"'s. If you log in to Server1, you will be sent to /ftp/server1/, and if you log in to Server2, you will be sent to /ftp/server2/. Which options do I need in my proftpd.conf file?

Thanks a lot in advance,
Chris
 
Can I do virtual hosts by binding multiple IP addresses to the NIC and resolving the hostnames to those IP's?
 
You can setup multiple IP addresses on same nic.

You can have ProFTPD respond to each IP in a totally different manner.

<VirtualHost x.x.x.x>
ServerName &quot;Server Banner&quot;
DefaultRoot /path/to/datadir
AllowOverwrite on
<Limit Login>
AllowUser username
AllowUser alt-username
DenyUser !username
DenyUser !alt-username
</Limit>
</VirtualHost>

(repeat for each different IP you want FTP server for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top