Forum Discussion
tvotta_94824
Nimbostratus
Oct 01, 2012Rewrite rule forward to specific domain and port
Hello Guys/Gals -- I'm new to irules and am trying to figure out a re-write scenario, I'm trying to change a current rule that does a redirect, and change it to rewrite. The current rule is lik...
Kevin_Stewart
Employee
Oct 01, 2012I'd probably throw in some logs at this point. The app may be doing things you didn't expect.
when HTTP_REQUEST {
log local0. "uri = [HTTP::uri]"
if { [HTTP::uri] equals "/" } {
log local0. "changing uri to /Portal/index.html"
HTTP::uri "/Portal/index.html"
}
log local0. "incoming host header = [HTTP::header Host]"
HTTP::header replace Host "server.nbc-news.west.foo.com:7012"
}
Then if you can, capture on the server side to see what it's sending and receiving.
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