Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

14
  • Please remove the .htaccess file upon attempting this example, as the directives might collide. Commented Apr 19, 2021 at 0:12
  • Where is this a common issue? The context for AuthType Basic is a directory (<Directory>, <Location>, <Files>...) or .htaccess context. Commented Apr 19, 2021 at 0:39
  • 1
    The sheer amount of similar posts with the same issue make it a common issue. Apache makes it difficult to get exactly right. I am aware the context suggests both are possible, however from my humble knowledge Apache changed its behavior at some point. The example I provided was copied from a working production setup. Commented Apr 19, 2021 at 0:49
  • Thanks gecko. I'll try with Location later and report back. Please see my comment to roaima above - is the Requite valid-user correctly overriding the higher-level Require all granted? My htpasswd file is in the correct format and readable, though called pass.txt. I haven't used a group file but can do if it might help. Will probably try it. Commented Apr 19, 2021 at 8:30
  • 1
    roaima I didn't think about that - you mean edit my question with updates? I hope my provisional answer below addresses the issue. Commented Apr 22, 2021 at 8:36