Forum Discussion
Chris_Broomes
Altostratus
Nov 21, 2013uri modification
I need a method to send a client to a particular port and URI whenever they access my site.
for example if the access my site at https://mysite.mydomain.com I want to send them to mysite.mydomai...
Kevin_Stewart
Employee
Nov 21, 2013There are three parts to this:
-
Port - this is provided by the pool members and address translation in the VIP.
-
Pool number in Host name - if this is actually required, an iRule can modify the Host header on entry.
-
The URI - this is a pretty straight forward iRule. Example:
when HTTP_REQUEST { HTTP::header replace Host "mysite.mydomain.com:50000" if { [HTTP::uri] equals "/" } { HTTP::uri "/MessagingSystem/receive/CIDXAdapter/CIDX/" } }This assumes that you're simply changing the URI as it passes through the proxy, that you don't need the user to see this URI, and that any URI request that isn't empty will be passed through. If these assumptions aren't correct, please let us know.
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