What exactly is proftpd.vhosts.conf

nieuwhier

Verified User
Joined
Sep 8, 2005
Messages
280
Location
Netherlands
Hi,

I moved a server last week and changed the two main ipnumbers to one new ipnumber. Everything went fine.

Only the proftpd service wouldn't start. I noticed that in proftpd.vhosts.conf was one virtual host. I had the main ipnumber in it. I deleted the lines and proftpd works fine since then.

But! When I add a new customer to that system than a virtual host entry is add to the (empty) file and proftpd stops again. I deleted the lines he added and it starts again.

What exactly should be in this file proftpd.vhosts.conf ? My guess is that there should be domains in it with own ipnumbers (wich I don't have on that server) ? I noticed that all ftp accounts are in /etc/proftpd.passwd so no link to custom passwd files is needed ?

In the old situation I had one site with its own ipnumber and the rest shared one ip. I converted both ip's to one ip. One thing I did forget was that the site with the ip had a ssl certificate. So I changed it now so that this site will have it's own ip.

Perhaps this has something to do with it ?
 
Hey,

Take a look at your log file, that should shed some light on the problem.

Here's what a virtual host and an SSL virtual host look like in one of our proftpd.vhosts.conf file:

<VirtualHost xxx.xxx.xxx.xxx>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/xxx.xxx.xxx.xxx.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/secure/ftp.passwd
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/xxx.xxx.xxx.xxx.bytes WRITE,READ userlog
AuthUserFile /etc/proftpd.passwd
</VirtualHost>

David
 
Hi David,

The first line displays <VirtualHost xxx.xxx.xxx.xxx> where xxx is the ipnumber for that site I guess? Is that a shared ip or the unique ip for that site ? I do think that there is the problem.

When you only have sites that share the ip, should there than be anything in that file ?

regards,
Michel.
 
The problem still exists. Every time a user is add to the shared IP an entry <VirtualHost xxx.xxx.xxx.xxx> is added to the file and the ftp service dies(because the ip is already in use as mainserver/sharedip). I deleted the lines in the file and the ftpservice works again.

what am i missing... :(
 
HELP!! NO SERVER IP

Ok, I now what the problem is now.

When I moved this server I renamed two ip's to one ip.

When I look at the iplist now than there is NO server ip. But only the ip for reseller admin.

It says:
xx.xxx.xx.xxx owned admin last-added-user

It should be:
xx.xxx.xx.xxx server ......... usercount

How can I solve this problem ? I have a few hundred sites running on this machine.
 
Back
Top