I need to password protect two directories with one user account in Apache. Will I need two Directory sections, or is there a way to combine them together?
I need to password protect two directories with one user account in Apache. Will I need two Directory sections, or is there a way to combine them together?
You can do both using the
DirectoryMatch
directive (regex basic skills required)You could list two
<Directory>
sections, but refer to the samehtpasswd
file; is that what you meant…? I presume that these aren't a directory, and one that it also contains…