Forum Discussion
LTM+APM Mode and Other URL links
This is fairly new to me so I don't completely understand have to proceed. However, I have a lab VE environment and can play all I want 🙂 So far, I have written the following rule:
Replace http://otherinternalserver/ with https://portal-dev.outsideserver.com/ in response content
Prevents server compression in responses
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
LTM does not uncompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from
sending a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace http://otherinternalserver/ with http://portal-dev.outsideserver.com/
STREAM::expression {@http://otherinternalserver/@http://portal-dev.outsideserver.com/@}
Enable the stream filter for this response only
STREAM::enable
}
}
When an outside user connects to https://portal-dev.outsideserver.com/, they see the internal server as before the rule was implemented. Now however, when they hover over the other internal server link on the page, their link displays the "https://portal-dev.outsideserver.com/" as I would expect. But basically the link does not work and responds with a 404 page not found.
Kevin, is this the correct approach? I think I understand why I need to have a different outside VS for the link, just wanted to make sure I'm going down the correct path..
Thanks, dg
- DannyG_34437Dec 30, 2013
Cirrus
Just to clarify, "I have written the following rule:" is more like a copy/paste and modify from DEVCent... :)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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