Forum Discussion
Rene_Bader_1308
Altostratus
Aug 06, 2014ProxyPass with Parameters in URI?
All,
I've trying to set up a ProxyPass scenario. The user types https://mainurl and it will be redirected to some internal servers https://internal/somedirectory?parameter1¶meter2
As per default parameters within an URI want work with ProxyPass so I tried to implement some irule:
when HTTP_Request {
if { [HTTP::uri] equals "/" }{
HTTP::uri "/somedirectory?parameter1¶meter2"}}
This is working so far, but the server responses with a 302 redirect and the browser will go to
https://mainurl/somesessionstring?parameter3¶meter4
Is there a way I can manipulate the HTTP resonse so the User will only see https://mainurl in the address bar?
Thanks
René
1 Reply
- John_Alam_45640Historic F5 Account
Not sure how this will interact with proxypass but give it a shot:
when HTTP_RESPONSE { if { [HTTP::status] equals "302" } { set redir_location [getfield [HTTP::header Location] "?" 1] HTTP::header replace Location $redir_location } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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