## Zabbix

<IfModule mod_alias.c>
    Alias /zabbix /usr/share/zabbix
</IfModule>

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
<IfModule !mod_authz_core.c> # Apache 2.2
    Order allow,deny
    Allow from all
</IfModule>
<IfModule mod_authz_core.c>  # Apache 2.4
    Require all granted
</IfModule>

    <IfModule mod_php8.2.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        # php_value date.timezone Europe/Riga
    </IfModule>

</Directory>

<Directory ~ "^/usr/share/zabbix/(conf|app|include|local)/">
<IfModule !mod_authz_core.c> # Apache 2.2
    Order deny,allow
    Deny from all
</IfModule>
<IfModule mod_authz_core.c>  # Apache 2.4
    Require all denied
</IfModule>

    <files *.php>
<IfModule !mod_authz_core.c> # Apache 2.2
        Order deny,allow
        Deny from all
</IfModule>
<IfModule mod_authz_core.c>  # Apache 2.4
        Require all denied
</IfModule>
    </files>
</Directory>
