mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
20
roles/freepbx/templates/httpd.conf.j2
Normal file
20
roles/freepbx/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
{% if fpbx_alias is defined %}
|
||||
Alias /{{ fpbx_alias }} {{ fpbx_root_dir }}/web/
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
|
||||
ProxyTimeout 900
|
||||
RewriteEngine On
|
||||
<Directory {{ fpbx_root_dir }}/web/>
|
||||
AllowOverride All
|
||||
Options FollowSymLinks
|
||||
{% if fpbx_src_ip is defined %}
|
||||
Require ip {{ fpbx_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ fpbx_php_fpm_pool | default('freepbx') }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
</Directory>
|
Reference in New Issue
Block a user