Forum Discussion
Devonion_22138
May 14, 2012Nimbostratus
Redirect to test server and rewrite returned links
I'm trying to write an irule so that I can use a cloned live webserver to test a PHP upgrade.
irule basically changes host header from www.dev.ourserver.com to www.ourserver.com and this part works ...
Devonion_22138
May 14, 2012Nimbostratus
Hi Michael,
My first attempt actually used the STREAM::expression - but I seemed to get inconsistent results - it seemed to work one minute, then pressing CTRL-F5 to reload page in a brower and it didn't rewrite the links. Basically I did the same as the irule above in the HTTP_REQUEST, but added a STREAM::disable at the start. Then did a STREAM::match and finally the STREAM::expression and STREAM::enable (I think)
If I still have a copy of the irule I will post tomorrow.
However, I guess I should try the default STREAM profile as that seems the simplest way to go, but I inherited this F5 and I'm not 100% sure what was there by default and what custom additions I've inherited - and this is all new to me and of course this needed sorting yesterday! So I've not got as much knowledge as I'd like before I've had to just dive in.
I appreciate the reply, thanks!
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