reject
2 TopicsRedirect Include URI
Hi I'm having trouble with the following iRule. The requirement is to redirect any requests to https://download.test.back.com to https://download.test.back.com/bred/publicweb/status/gifb Any requests directly to https://download.test.back.com/bred/publicweb/status/gifb should be rejected when HTTP_REQUEST { if { [HTTP::host] equals "download.test.back.com" && [HTTP::path] equals "/" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]/bred/publicweb/status/gifb" }else { if {[HTTP::uri] equals "/bred/publicweb/status/gifb" } { reject } } } The response we are seeing towards the servers is something like this does not include the URI (/bred/publicweb/status/gifb) ----------------------------REQUEST--------------------------- URI=/MEkwRzBFMEMwQTAJBgUrDgMCGgUABBQ6UnYMs4JZvSkqZMdaftSSm1KopgQUIT1LBSePsKHPrvwmssmkgd76sn4CCHCEWSkqZPMv I would like URL to be included on the way to the servers, like this: ----------------------------REQUEST--------------------------- URI=/bred/publicweb/status/gifb/MEkwRzBFMEMwQTAJBgUrDgMCGgUABBQ6UnYMs4JZvSkqZMdaftSSm1KopgQUIT1LBSePsKHPrvwmssmkgd76sn4CCHCEWSkqZPMv Can someone point me in the right direction? Thanks250Views0likes2CommentsSERVER_CONNECTED and reject - how affects clientside
Hi, From my test when I use reject in SERVER_CONNECTED event then following sequence of events is triggered (hope that logging indicates order of events): LB_FAILED CLIENT_CLOSED SERVER_CLOSED I have HTTP::respond in LB_FAILED but it's not executed. What is the reason? In LB_FAILED clientside connection should be still open so iRule should be able to send response - but looks like it is not the case. Is reject in SERVER_CONNECTED somehow removing/disabling clientside TCP connection? If it is so is there any way to send HTTP response instead of TCP connection reset sequence? Piotr700Views0likes5Comments