Forum Discussion
Hien_Truong
Cirrus
2 years agoRewrite the post operation with a body.
Hi; can you help to write the irule to rewrite the post operation (not uri redirect) with a body as below: For example: abc-cd.ef.com/abc/v1/jurisdict/configuration rewrite to cd.ef.com/abc/v1...
Hien_Truong
Cirrus
2 years agoi tried both of your irules using my browser but i get 404 return. it mean somehow it doesn't hit irule when applying it to F5 then F5 send the request to pool members and get 404 error. i also tried the below irule but still not working. i see "get" method in console. Please advise. Thanks
when HTTP_REQUEST {
if {[HTTP::method] eq "POST"}{
HTTP::header replace origin "http://123.abc.com"
HTTP::header replace referer "http://123.bcd.com"
} else { return }
}
JRahm
Admin
2 years agomaybe try the serverside of the connection to update the host?
when HTTP_REQUEST_SEND {
clientside {
HTTP::header replace Host <your desired host for server-side>
}
}Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects