Server IP : 85.193.89.191 / Your IP : 18.188.213.158 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/981/cwd/etc/ansible/library/ |
Upload File : |
# {{ ansible_managed }} # enable ServerStatus {%- set is_httpd24 = 0 %} {%- if ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' %} {%- set is_httpd24 = 1 %} {% endif %} Listen {{ apache_monitoring_netaddr }}:{{ apache_monitoring_port }} {% if is_httpd24 == 0 -%} NameVirtualHost {{ apache_monitoring_netaddr }}:{{ apache_monitoring_port }} {% endif %} <IfModule mod_status.c> ExtendedStatus On </IfModule> <VirtualHost {{ apache_monitoring_netaddr }}:{{ apache_monitoring_port }}> ServerAdmin webmaster@localhost <Location {{ apache_monitoring_page }}> SetHandler server-status {% if is_httpd24 > 0 -%} Require ip 127.0.0.1 {% for host in groups['bitrix-web'] %} {% if host != deleted_web_server %} Require ip {{ hostvars[host].bx_netaddr }} {% endif %} {% endfor %} {%if new_web_server != 'NOT_DEFINED' %} Require ip {{ hostvars[new_web_server].bx_netaddr }} {%endif%} {% else %} Order Deny,Allow Allow from 127.0.0.1 {% for host in groups['bitrix-web'] %} {% if host != deleted_web_server %} Allow from {{ hostvars[host].bx_netaddr }} {% endif %} {% endfor %} {%if new_web_server != 'NOT_DEFINED' %} Allow from {{ hostvars[new_web_server].bx_netaddr }} {%endif%} Deny from All {% endif %} </Location> </VirtualHost>