Forum Discussion
extremeboozer_3
Nimbostratus
Oct 23, 2007Insert new URL
Even though myself and my co-worker pride ourselves in being rule hacks we still have yet to figure out how to write a rule to change the destination URL of an HTTP request without redirecting the cli...
Bookernoe69_111
Nimbostratus
Oct 24, 2007Joe, I appreciate you quick response to a newbie. But I just must be really dull.
I have a virtual server configured with a client side ssl cert. Configured with an address on port 443. For resources I have none for pool and persistence. Under iRules I have my Host_replace rule.
here is my rule:
when HTTP_REQUEST {
HTTP::header replace "Host" "share.stg.myxx.com"
HTTP::uri "/Pages/Default.aspx"
}
I go to https://bt.dev.myxx.com, but it cannot display a page. I can change the rule to a redirect and that works fine so I think that the virtual and proxy are configured correctly.
I have also tried :
when HTTP_REQUEST {
if { [HTTP::host] eq "bt.dev.myxx.com" } {
HTTP::header replace "Host" "share.stg.myxx.com"
}
}
Still no love.
Does this have something to do with SSL? Please help.
~Bo
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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