mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
33 lines
994 B
Django/Jinja
33 lines
994 B
Django/Jinja
{% if matomo_alias is defined %}
|
|
Alias /{{ matomo_alias }} {{ matomo_root_dir }}/web
|
|
{% else %}
|
|
# No alias defined, create a vhost to access it
|
|
{% endif %}
|
|
|
|
<Directory {{ matomo_root_dir }}/web>
|
|
AllowOverride All
|
|
Options FollowSymLinks
|
|
{% if matomo_src_ip is defined %}
|
|
Require ip {{ matomo_src_ip | join(' ') }}
|
|
{% else %}
|
|
Require all granted
|
|
{% endif %}
|
|
<FilesMatch \.php$>
|
|
SetHandler "proxy:unix:/run/php-fpm/{{ matomo_php_fpm_pool | default('matomo_' + matomo_id | string) }}.sock|fcgi://localhost"
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "^(\.ansible_version|\.git.*|(README|LICENSE|AUTHORS|CHANGELOG|CONTRIBUTING|LEGALNOTICE|PRIVACY|SECURITY)(\.md)?|.*\.co?nf|\.htaccess|composer\.(json|lock))">
|
|
Require all denied
|
|
</FilesMatch>
|
|
</Directory>
|
|
|
|
<Directory {{ matomo_root_dir }}/web/config>
|
|
Require all denied
|
|
</Directory>
|
|
<Directory {{ matomo_root_dir }}/web/inc>
|
|
Require all denied
|
|
</Directory>
|
|
<Directory {{ matomo_root_dir }}/web/config>
|
|
Require all denied
|
|
</Directory>
|