Forum Discussion
help with Irule to change url from servername
There are a few things to understand in this situation.
-
First and foremost, and HTTP request is what the client sends to the server, and an HTTP response is what the server sends to the client, in response to the request.
-
There are potentially many different places where this offending URL can show up at the client, and how you address it depends on where and how it shows up. An HTTP response, sent by the server, can/will contain:
-
HTTP headers - these are hidden values that either tell the browser about the server and/or response payload, or command the browser to do something. For instance, an HTTP redirect is usually performed with a 30x type message (301 or 302 mostly) and a Location header. The Location header contains the address that the browser should go to when it receives this message.
-
HTML payload - this is the document rendered by the browser, which may contain references to other objects, images, style sheets, JavaScript, etc., and those references could be using the internal URL namespace.
So as you can see, the solution depends on where the URL is showing up in the response. The best thing you can do is to run a client side capture utility like HTTPWatch or Fiddler and watch the HTTP interaction.
-
-
Now, if this internal URL is only showing up in one place, a single redirect for instance, or the server just needs to see this internal Host header (SharePoint does), then a fairly lean iRule can fix it. If the document is riddled with internal object references, however, then you may need something a bit more complicated. The ProxyPass iRule is designed to scrub request and response content and map external to internal URLs and vice versa. You can do the same with 11.4's rewrite profile.
The very FIRST thing you need to do though, is to identify WHERE and WHEN the client sees this internal URL. Please report back what you find.
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