Forum Discussion
muratogul_64940
Nimbostratus
May 11, 2011How to change any URI on the server side without changing orig URI
hi, how can we change URI before sending it to server (pool members) for example;
pool members IP addresses : 10.1.1.1, and 10.1.1.2
any URI comes to VIP ( http://abc.com ) --->...
hoolio
Cirrostratus
May 11, 2011Hi Murat,
Are clients making HTTP/S requests directly to the virtual server? Or are they using the virtual server as a web proxy? For the former, if you want to rewrite all URIs to /httpgw without the client seeing the change, you can use an iRule like this:
when HTTP_REQUEST {
Check if host is abc.com
if {[string tolower [HTTP::host]] eq "abc.com"}{
Rewrite the URI to /httpgw
HTTP::uri "/httpgw"
}
}
If you don't want to check the host header is abc.com, you can remove the 'if' statement and the closing curly brace.
Aaron
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