我想实现对两个数据中心可用的页面的检查。但是,web场景zabbixie 2.2.1没有正确处理标头。我认为它将用于apache代理,但我认为我在配置中犯了一些错误。下面是两个文件和vhost文件
<VirtualHost *:80>
ServerName firstDC.test.be
ServerAdmin admins@test.com
Header set Host "test.be"
ProxyPreserveHost On
ProxyPass / https://222.222.22.22/
ProxyPassReverse / https://222.222.22.22/
LogLevel warn
ErrorLog /var/log/httpd/firstDC.log
CustomLog /var/log/httpd/firstDC.log combined
</VirtualHost><VirtualHost *:80>
ServerName secondDC.test.be
ServerAdmin admins@test.com
Header set Host "test.be"
ProxyPreserveHost On
ProxyPass / https://333.333.33.33/
ProxyPassReverse / https://333.333.33.33/
LogLevel warn
ErrorLog /var/log/httpd/secondDC.log
CustomLog /var/log/httpd/secondDC.log combined
</VirtualHost>127.0.0.1 firstDC.test.be secondDC.test.be
192.168.178.151 TESTLINUX TESTLINUX.domain.local firstDC.test.be secondDC.test.be请告诉我错误在哪里?
问候米克
发布于 2014-10-20 22:45:46
这是Zabbix2.4的典型用例- web监视中的自定义标头- https://www.zabbix.com/documentation/2.4/manual/web_监控
你有什么严肃的理由使用Zabbix 2.2吗?
你应该加上:
RequestHeader set Host "test.be"https://serverfault.com/questions/638381
复制相似问题