ISPconfig 3 - Folder Protection acts weird

Discussion in 'General' started by orasis, Apr 10, 2012.

  1. orasis

    orasis Member

    A nice feature in ISPconfig 3 but it if used it wipes out an already existing .htaccess file in order to add the auth code inside. It should jsut add the code to "the end" of the file.

    Now concerning the .htpasswd that it is creating in the same directory, would it be possible to create it out of the public /web/ directory ?

    cheers, thanks in advance
     
    Last edited: Apr 10, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The .htpassd file is always in the same directory then the .htaccess file, downloading the .htpasswd is blocked in apache by default, so nobody can access it from the web.
     
  3. orasis

    orasis Member

    thanks till for the answer, how about the first part of my post ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The folder protection feature is a function to protect new empty subfolders, so the current behaviour that overrides .htaccess files is intended. Editing existing .htaccess files can cause the protection to fail as the script would have to parse the whole content of the file as there might be other protections inside or directives which could override the protection. We might add a .htaccess file parse in future versions though.
     
  5. orasis

    orasis Member

    right.. thanks for that information.

    Well I didn't think it would have to be so complicated, seeing how cPanel does it, I thought it was more easy.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. orasis

    orasis Member

    nice, well it will just help a lot especially those that use ispconfig 3 for customers :D

    waiting for this feature!

    cheers and thanks a lot
     

Share This Page