{% if wp_alias is defined %}
Alias /{{ wp_alias }} {{ wp_root_dir }}/web
{% else %}
# No alias defined, create a vhost to access it
{% endif %}
AllowOverride All
Options FollowSymLinks
{% if wp_src_ip | length > 0 %}
Require ip {{ wp_src_ip | join(' ') }}
{% else %}
Require all granted
{% endif %}
SetHandler "proxy:unix:/run/php-fpm/{{ wp_php_fpm_pool | default('wp_' + wp_id | string) }}.sock|fcgi://localhost"
Require all denied
Require all denied
order allow,deny
deny from all
SetHandler None