User Tools

Site Tools


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

<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>


  <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.1717230307.txt.gz · Last modified: 2024/06/01 05:25 by protocol