You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
549 B
21 lines
549 B
4 years ago
|
{% if itop_alias is defined %}
|
||
|
Alias /{{ itop_alias }} {{ itop_root_dir }}/web/
|
||
|
{% else %}
|
||
|
# No alias defined, create a vhost to access it
|
||
|
{% endif %}
|
||
|
|
||
|
RewriteEngine On
|
||
|
<Directory {{ itop_root_dir }}/web/>
|
||
|
AllowOverride All
|
||
|
Options FollowSymLinks
|
||
|
{% if itop_src_ip is defined %}
|
||
|
Require ip {{ itop_src_ip | join(' ') }}
|
||
|
{% else %}
|
||
|
Require all granted
|
||
|
{% endif %}
|
||
|
<FilesMatch \.php$>
|
||
|
SetHandler "proxy:unix:/run/php-fpm/{{ itop_php_fpm_pool | default('itop_' + itop_id | string) }}.sock|fcgi://localhost"
|
||
|
</FilesMatch>
|
||
|
</Directory>
|
||
|
|