跑步:
Ubuntu 20.04 上的 Apache 2.4.41
我正在尝试强制在 /var/www/html 上进行身份验证,但我想我已经尝试了所有可能的选项组合,但每次它都会让人们进入,并在 access.log 中显示以下消息。
AH01625: authorization result of <RequireAny>: granted (directive
limited to other methods)
我的 vHost 文件:
ServerName icecast01.sbsica.com
ServerAdmin [email protected]
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/icecast01.sbsica.com_error.log
CustomLog /var/log/apache2/icecast01.sbsica.com_access.log "combined"
Alias /awstatsclasses /usr/share/awstats/lib/
Alias /awstats-icon/ /usr/share/awstats/icon/
Alias /awstatscss /usr/share/doc/awstats/examples/css
SSLProtocol +TLSv1.1 +TLSv1.2 +TLSv1.3
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCACertificateFile /etc/letsencrypt/live/icecast01.sbsica.com/chain.pem
LogLevel debug
SSLCertificateFile /etc/letsencrypt/live/icecast01.sbsica.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/icecast01.sbsica.com/privkey.pem
<Directory "/var/www/html">
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride AuthConfig
Require all denied
<RequireAny>
<RequireAll>
AuthDigestDomain "SBSI"
AuthDigestProvider file
AuthUserFile /etc/sbsi/htdigest.users
AuthGroupFile /etc/group
AuthName "SBSI"
AuthType Digest
Require valid-user granted
</RequireAll>
</RequireAny>
</Directory>
有人有想法吗?