mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-06 22:47:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
18
roles/zabbix_server/templates/httpd.conf.j2
Normal file
18
roles/zabbix_server/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<Directory "/usr/share/zabbix">
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
{% if zabbix_server_web_src_ip is defined %}
|
||||
Require ip {{ zabbix_server_web_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
{% if zabbix_server_auth_http %}
|
||||
SetEnvIfNoCase Auth-User "(.*)" PHP_AUTH_USER=$1
|
||||
SetEnvIfNoCase Auth-User "(.*)" PHP_AUTH_PW=$1
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ zabbix_server_php_fpm_pool | default('zabbix_server') }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
Reference in New Issue
Block a user