file htacess

  • Hello,

    I wanted to know how we could enable htacess files? Because when I have a htacess file, I have a server error;
    Do you have a solution please?

    Thank you in advance.

  • Thank you for your reply.
    The error is internal server error.


    Here is the file:



    ErrorDocument 401 "Unauthorized"
    AuthType Basic
    AuthName "IP.Board CP"
    AuthUserFile /home/user/public_html/admin/.htpasswd
    Require valid-user

  • (2)No such file or directory: Could not open password file: /home/user/public_html/admin/.htpasswd




    Yet the file exists.

  • /home/user/public_html/admin/.htpasswd


    Nothing to do with i-MSCP...


    Thread moved.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • That's with the i-MSCP panel.
    But in fact we must put the full path, ie "/var/www/virutal/site.com/htdocs


    Thank you for your help.

  • In fact, you should create protected area using the panel directly to avoid such error...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • In fact, I had not thought of.
    It would have been much easier ..