# ProxyPass Question

**URL:** <https://community.f5.com/t/proxypass-question/37665>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [November 14, 2012, 10:19pm UTC](https://community.f5.com/t/proxypass-question/37665 "2012-11-14T22:19:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Marvel\_629](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mike\_Marvel\_629](https://community.f5.com/u/Mike_Marvel_629)\
**Post date:** [November 14, 2012, 10:19pm UTC](https://community.f5.com/t/proxypass-question/37665/1 "2012-11-14T22:19:26Z")

</div>

I had a request from our dev team to have the F5 do something with the ProxyPass iRule. I’ve implemented the following scenario (QA test environment):

User types:

User sees in browser:

User is actually hitting (URL hidden):

This part works fine but after this is where I have a problem. The page has 3 buttons, each redirects the user to another page. (302) After this redirect, the user sees the actual URL in their browser instead of the proxy URL. So they see this:

or or

But what they should see is this:

or or

What I need to know is how can I get PoxyPass to catch these redirects and keep the actual URL hidden while still redirecting to the new page?

What the dev team is trying to get to is a point where they present a URL to the customers that will never change and will mask whatever environment is actually behind it. The end result of all of this work will be something like this:

User types: [http://www.test.com/replace](http://www.test.com/replace)

User sees: [http://www.test.com/replace/app/page1.aspx](http://www.test.com/replace/app/page1.aspx)

User is actually hitting: [http://www.bogus.com/app/page1.aspx](http://www.bogus.com/app/page1.aspx)

or

User types: [http://www.test.com/renew](http://www.test.com/renew)

User sees: [http://www.test.com/renew/app2/index/index.html](http://www.test.com/renew/app2/index/index.html)

User is actually hitting: [Checking your browser...](http://www.notreal.com/app2/index/index.html)

I’ll need to keep any redirects hidden here as well because the users cannot see the backend URL. I’ve tried enabling the stream profile but that doesn’t seem to make a difference.

Any ideas?

Thanks.

---

<div class="post-metadata">

**Author:** ![What\_Lies\_Bene1](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@What\_Lies\_Bene1](https://community.f5.com/u/What_Lies_Bene1)\
**Post date:** [November 15, 2012, 9:36am UTC](https://community.f5.com/t/proxypass-question/37665/2 "2012-11-15T09:36:09Z")

</div>

I’d suggest it would be easier to not use the redirects in the application as these are effectively impossible to mask; if you rewrite them, the client browser obviously won’t go to the right place. Can they not be replaced with relative links?

---

<div class="post-metadata">

**Author:** ![Mike\_Marvel\_629](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mike\_Marvel\_629](https://community.f5.com/u/Mike_Marvel_629)\
**Post date:** [November 15, 2012, 2:41pm UTC](https://community.f5.com/t/proxypass-question/37665/3 "2012-11-15T14:41:20Z")

</div>

I know this is more of a fire drill than anything… in the end, they need to fix the app but I had to go through it first.

If anybody comes up with anything, let me know.

---

<div class="post-metadata">

**Author:** ![What\_Lies\_Bene1](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@What\_Lies\_Bene1](https://community.f5.com/u/What_Lies_Bene1)\
**Post date:** [November 15, 2012, 2:52pm UTC](https://community.f5.com/t/proxypass-question/37665/4 "2012-11-15T14:52:50Z")

</div>

Do the two (or more) different domains names resolve to the same IP and Virtual Server?

---

<div class="post-metadata">

**Author:** ![Mike\_Marvel\_629](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mike\_Marvel\_629](https://community.f5.com/u/Mike_Marvel_629)\
**Post date:** [November 15, 2012, 6:56pm UTC](https://community.f5.com/t/proxypass-question/37665/5 "2012-11-15T18:56:06Z")

</div>

Yes, for this QA exercise everything is on the same VS. I cannot say the same in the future.

Just an update that our dev guys wanted to throw in… the page is [asp.net](http://asp.net) and what is actually happening on the button is this:

Response.Redirect(“Default.aspx?clientID=” + clientid + “&UserAction=” + userAction + “&Culture=” + SelLanguage +“&Mode=”+mode);
