Hi, I tried to create a directory limited access. In the frontend it works fine, but I encounterd an "interanl server error" after accessing the directory.
After checking, I found two errors:
1.: in the .... dir_auth/domain.tld/accessname.conf
<Directory "**/www/wwwroot/domain.tldhttps://domain.tld/noaccess/**">
#AUTH_START
AuthType basic
AuthName "Authorization "
AuthUserFile /www/server/pass/domain.tld/accessname.pass
Require user test
#AUTH_END
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
#Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
The Directory directive is wrong, because I wrote the full https://domain.tld/noaccess path
in the frontends' field, seduced by the description.
You may can enable a domain.tld-check there.
after testing this all out, apache reported an error in the main domain.conf file:
something is wrong in line 30 (http:80)(and later 76 (https:443))
the config looks like this (-> rest of old config after </Directory>)
` #PATH
<Directory "/www/wwwroot/domain.tld">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
domain.tld/*.conf
#Directory protection rules, do not manually delete
</VirtualHost>`
This maybe happened, 'cause the dominname has hyphen like go-green.com.
The remaining line was
-green.com/*.conf
- is it possible, to add more than one user to the restrictions?
TIA
Kuerbis42