{% if matomo_alias is defined %}
Alias /{{ matomo_alias }} {{ matomo_root_dir }}/web
{% else %}
# No alias defined, create a vhost to access it
{% endif %}
AllowOverride All
Options FollowSymLinks
{% if matomo_src_ip is defined %}
Require ip {{ matomo_src_ip | join(' ') }}
{% else %}
Require all granted
{% endif %}
SetHandler "proxy:unix:/run/php-fpm/{{ matomo_php_fpm_pool | default('matomo_' + matomo_id | string) }}.sock|fcgi://localhost"
Require all denied
Require all denied
Require all denied
Require all denied