Accept cookies for analytics, social media, and advertising, or learn more and adjust your preferences. These cookies are on by default for visitors outside the UK and EEA. Privacy Notice.
CiscoのCSSおよびBigIPプロダクトのような幾つかのハードウェアロードバランサはSYN-ACK-RST
を使ったバックエンドマシーンの準備ができていることをテストします。
この挙動はNGINXでは400エラーを起こします。
GEO モジュール と if-Statement
を使ってこれらのエントリーを省略することができます:
http {
geo $lb {
default 0;
10.1.1.1/32 1; # LB IPs
10.1.1.2/32 1;
}
# ...
server {
# ...
access_log /path/to/log;
error_page 400 /400;
location = /400 {
if ($lb) {
access_log off;
}
return 400;
}
}
}