PDA

View Full Version : Web-FTP module showing a restricted directory


danf.1979
11th April 2007, 04:47
Hi, I have restricted access to a directory as shown in here:

DefaultAddress 127.0.0.1
<VirtualHost ip_here>
DefaultRoot "~/web"
AllowOverwrite on
Umask 002
<Directory ~/web/restricted>
<Limit ALL>
DenyAll
</Limit>
</Directory>
</VirtualHost>


In third party ftp clients the directory is not accesible, but with the Web-FTP module I can see the directory and browse it. Why is this? Any way to fix it?
Also, the Web-FTP module does not use ~/web as default root. :(

till
11th April 2007, 10:34
The WebFTP connects on the IP 127.0.0.1, so you will have to add the restriction also for the IP 127.0.0.1. The best way might be to just put:

<VirtualHost 127.0.0.1>
DefaultRoot "~/web"
AllowOverwrite on
Umask 002
<Directory ~/web/restricted>
<Limit ALL>
DenyAll
</Limit>
</Directory>
</VirtualHost>

in your proftpd.conf right above the include line for the ISPConfig proftpd conf file.