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.


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

    Thank you for your help.

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


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