Apache2 – protect only directory but not subdirectory
I’m trying to host a webserver with Apache2 on Debian 12.
I want to limit access to webserver/dir1
with a password promt. This already works.
My issue is, that webserver/dir1/subdir1
has to be available to multiple people.
Therefore I want them to access this site without any password while webserver/dir1
is still protected.
Sadly the password protection works for webserver/dir1
and webserver/dir1/subdir1
. But I want everyone to access webserver/dir1/subdir1
without a password.