Web-FTP module showing a restricted directory

Discussion in 'General' started by danf.1979, Apr 11, 2007.

  1. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    Hi, I have restricted access to a directory as shown in here:
    Code:
    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. :(
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     

Share This Page