srelliott
Verified User
- Joined
- Apr 6, 2005
- Messages
- 44
Hello,
First, I have already resolved this issue, but I want to post to make sure my understanding of how things *should* work is correct.
The problem: Users with owned IP accounts could not FTP with passive mode, but all of my virtual host accounts were able to use passive FTP.
The solution: In /etc/proftpd.conf I moved the following line:
PassivePorts 49900 49949
into the <Global> section.
One this was done, both owned IP and virtuals hosts were able to use passive FTP mode.
Question 1: I thought the /usr/local/directadmin/data/templates/proftpd.vhosts.conf is where you are suppose to add the PassivePorts for virtual hosts. Like so:
/usr/local/directadmin/data/templates/proftpd.vhosts.conf
When I deleted PassivePorts in proftpd.conf and added it to proftpd.vhosts.conf passive mode didn't work for virtual hosts.
Question 2: If indeed I am suppose to be able to add PassivePorts to /usr/local/directadmin/data/templates/proftpd.vhosts.conf, shouldn't I be able to create a file in /usr/local/directadmin/data/templates/custom/proftpd.vhosts.conf so that it won't get clobberd during updates? If so, is this how the files should look?
/usr/local/directadmin/data/templates/proftpd.vhosts.conf
/usr/local/directadmin/data/templates/custom/proftpd.vhosts.conf
Any clarification on how this should work is most appreciated.
First, I have already resolved this issue, but I want to post to make sure my understanding of how things *should* work is correct.
The problem: Users with owned IP accounts could not FTP with passive mode, but all of my virtual host accounts were able to use passive FTP.
The solution: In /etc/proftpd.conf I moved the following line:
PassivePorts 49900 49949
into the <Global> section.
One this was done, both owned IP and virtuals hosts were able to use passive FTP mode.
Question 1: I thought the /usr/local/directadmin/data/templates/proftpd.vhosts.conf is where you are suppose to add the PassivePorts for virtual hosts. Like so:
/usr/local/directadmin/data/templates/proftpd.vhosts.conf
Code:
<VirtualHost |ip|>
ServerName "|ServerName|"
ExtendedLog |ExtendedLog| WRITE,READ userlog
AuthUserFile |AuthUserFile|
PassivePorts 49900 49949
|EXTRA|
</VirtualHost>
When I deleted PassivePorts in proftpd.conf and added it to proftpd.vhosts.conf passive mode didn't work for virtual hosts.
Question 2: If indeed I am suppose to be able to add PassivePorts to /usr/local/directadmin/data/templates/proftpd.vhosts.conf, shouldn't I be able to create a file in /usr/local/directadmin/data/templates/custom/proftpd.vhosts.conf so that it won't get clobberd during updates? If so, is this how the files should look?
/usr/local/directadmin/data/templates/proftpd.vhosts.conf
Code:
<VirtualHost |ip|>
ServerName "|ServerName|"
ExtendedLog |ExtendedLog| WRITE,READ userlog
AuthUserFile |AuthUserFile|
|EXTRA|
</VirtualHost>
/usr/local/directadmin/data/templates/custom/proftpd.vhosts.conf
Code:
<VirtualHost |ip|>
PassivePorts 49900 49949
|EXTRA|
</VirtualHost>
Any clarification on how this should work is most appreciated.