{% if glpi_alias is defined %}
Alias /{{ glpi_alias }} {{ glpi_root_dir }}/web
{% else %}
# No alias defined, create a vhost to access it
{% endif %}
AllowOverride All
Options FollowSymLinks
{% if glpi_src_ip is defined %}
Require ip {{ glpi_src_ip | join(' ') }}
{% else %}
Require all granted
{% endif %}
SetHandler "proxy:unix:/run/php-fpm/{{ glpi_php_fpm_pool | default('glpi_' + glpi_id | string) }}.sock|fcgi://localhost"
Require all denied
{% for dir in [ 'scripts', 'locales', 'config', 'inc', 'vendor', '.github', 'bin' ] %}
Require all denied
{% endfor %}