From d3a35999f16c2ab842f9020d59f5aa8d935fec20 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 6 Feb 2022 14:56:38 +0200 Subject: [PATCH] Fix in nginx-plus.virtualserver.tmpl ApDosMonitor->ApDosMonitorURI --- internal/configs/version2/nginx-plus.virtualserver.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/configs/version2/nginx-plus.virtualserver.tmpl b/internal/configs/version2/nginx-plus.virtualserver.tmpl index 2a03e6f1d2..a307766b42 100644 --- a/internal/configs/version2/nginx-plus.virtualserver.tmpl +++ b/internal/configs/version2/nginx-plus.virtualserver.tmpl @@ -214,11 +214,11 @@ server { access_log {{ .ApDosAccessLogDest }} log_dos if=$loggable; {{- end }} - {{- if .ApDosMonitor }} + {{- if .ApDosMonitorURI }} {{- if or .ApDosMonitorProtocol .ApDosMonitorTimeout}} - app_protect_dos_monitor uri={{ .ApDosMonitor }}{{if .ApDosMonitorProtocol}} protocol={{.ApDosMonitorProtocol}}{{end}}{{if .ApDosMonitorTimeout}} timeout={{.ApDosMonitorTimeout}}{{end}}; + app_protect_dos_monitor uri={{ .ApDosMonitorURI }}{{if .ApDosMonitorProtocol}} protocol={{.ApDosMonitorProtocol}}{{end}}{{if .ApDosMonitorTimeout}} timeout={{.ApDosMonitorTimeout}}{{end}}; {{- else}} - app_protect_dos_monitor "{{ .ApDosMonitor }}"; + app_protect_dos_monitor "{{ .ApDosMonitorURI }}"; {{- end}} {{- end}}