zabbix
This is an old revision of the document!
chmod go-rxw /etc/zabbix/apache.conf
a2enmod authn_dbd
a2enmod authn_socache
systemctl restart apache2
apt install libaprutil1-dbd-mysql -y
nano /etc/apache2/mods-enabled/authn_dbd.conf
<IfModule mod_dbd.c>
DBDriver mysql
DBDParams host=localhost,dbname=zabbix,user=zabbix,pass=appaloosa
DBDMin 1
DBDKeep 8
DBDMax 16
DBDExptime 300
</IfModule>
<Directory "/zabbix/">
AuthType Basic
AuthName "Authentication"
AuthBasicProvider socache dbd
AuthnCacheProvideFor dbd
AuthnCacheContext Authentication
Require valid-user
AuthDBDUserPWQuery "SELECT passwd FROM users WHERE username = %s"
</Directory>
<Location "/.well-known">
AuthType None
Require all granted
</Location>
<IfModule mod_dbd.c>
DBDriver mysql
DBDParams host=localhost,dbname=mkradius,user=root,pass=vertrigo
DBDMin 1
DBDKeep 8
DBDMax 16
DBDExptime 300
</IfModule>
<Directory "/admin/">
AuthType Basic
AuthName "Authentication"
AuthBasicProvider socache dbd
AuthnCacheProvideFor dbd
AuthnCacheContext Authentication
Require valid-user
AuthDBDUserPWQuery "SELECT sha FROM sis_acesso WHERE login = %s AND ativo"
</Directory>
zabbix.1731772732.txt.gz · Last modified: 2024/11/16 12:58 by protocol
