Forum Discussion
Rewrite HTTPS URL
- Oct 14, 2013
section from reply above. To change the URI, you can have the VIP iRule change that before your forward out. If the server does not respond to redirects like a browser:
when HTTP_REQUEST { if { [HTTP::uri] equals "/soap" } { HTTP::uri "/soap/test" } }
If i understand this correctly, your server acts as an HTTP 1.1 client and initiates a connection to https://sample.domain.com/soap and you want the URL to be: https://sample.domain.com/soap/test.
To make configuration simple, you need to force your server to resolve the hostname to the IP address of a VIP on the bigIP.
To change the URI, you can have the VIP iRule change that before your forward out. If the server does not respond to redirects like a browser: when HTTP_REQUEST { if { [HTTP::uri] equals "/soap" } { HTTP::uri "/soap/test" } }
If the server DOES respond to redirects you can do this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/soap" } {
HTTP::redirect "https://[HTTP::header host]/soap/test"
}
}
Hope this helps. You may want to re phrase you question and include more details in case my reply does not answer it for you.
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