{% if kanboard_alias is defined %}
Alias /{{ kanboard_alias }} {{ kanboard_root_dir }}/web
{% else %}
# No alias defined, create a vhost to access it
{% endif %}
AllowOverride None
Options FollowSymLinks
{% if kanboard_src_ip is defined and kanboard_src_ip | length > 0 %}
Require ip {{ kanboard_src_ip | join(' ') }}
{% else %}
Require all granted
{% endif %}
SetHandler "proxy:unix:/run/php-fpm/{{ kanboard_php_fpm_pool | default('kanboard_' + kanboard_id) }}.sock|fcgi://localhost"
Options -MultiViews
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Require all denied
Require all denied