Good day! I am trying to configure Apache authentication using Basic to get started. I have shared hosting at my disposal, on which I cannot manage the settings of the web server. I prepared a file on the "home" Apache web server (running under Windows) an identifier: a password and put it in the same directory that I want to protect against access using .htaccess . I know that the Apache manual categorically does not recommend doing just that, but nevertheless this option so far suits me. "Research" showed that the password file is searched for in the Apache "home" directory, where I do not have access to the hosting. Therefore, I want to ask how to set the AuthUserFile file.txt parameter so that file.txt is taken from the current directory?
AuthType Basic AuthName "admin area" AuthUserFile d:\web\htdocs\test\file.txt Require valid-user