tech note

インフラ技術や車についてつぶやいていくブログ

BIG-IP iRule HTTP::respond によるリダイレクトHTTPヘッダー例

f:id:tea_cat:20180911023333j:plain

iRule記述とその結果

HTTP::respond 403 noserver Server Apache

when HTTP_REQUEST {
    HTTP::respond 403 noserver Server Apache
}
--
HTTP/1.0 403 Forbidden
Server: Apache
Connection: Keep-Alive
Content-Length: 0

HTTP::respond 403 noserver

when HTTP_REQUEST {
    HTTP::respond 403 noserver
}
--
HTTP/1.0 403 Forbidden
Connection: Keep-Alive
Content-Length: 0

HTTP::respond 403 content "test" noserver Server Apache

when HTTP_REQUEST {
    HTTP::respond 403 content "test" noserver Server Apache
}
--
HTTP/1.0 403 Forbidden
Server: Apache
Connection: Keep-Alive
Content-Length: 4

test