fix(haproxy): ACL 404 для HAProxy 2.8 и deploy-скрипт
Исправлен синтаксис !(host_ext path_autodiscover) и порядок http-request/use_backend. Скрипт deploy сохраняет stats auth с сервера.
This commit is contained in:
+3
-2
@@ -136,12 +136,13 @@ frontend fe_http
|
||||
# Zabbix: 403 только при неверном IP (fail2ban haproxy-zabbix-403)
|
||||
http-request deny deny_status 403 if host_zabbix !src_zabbix_allowed
|
||||
|
||||
http-request deny deny_status 404 if host_ext !path_autodiscover
|
||||
http-request deny deny_status 404 if !host_zabbix !host_autodiscover !host_ext
|
||||
|
||||
use_backend be_exchange_http if host_autodiscover
|
||||
use_backend be_exchange_http if host_ext path_autodiscover
|
||||
use_backend be_zabbix if host_zabbix
|
||||
|
||||
http-request deny deny_status 404 if !host_zabbix !host_autodiscover !(host_ext path_autodiscover)
|
||||
|
||||
backend be_exchange_http
|
||||
mode http
|
||||
option forwardfor
|
||||
|
||||
Reference in New Issue
Block a user