Forum Discussion

CSA's avatar
CSA
Icon for Nimbostratus rankNimbostratus
Oct 01, 2012

Reverse proxy for login page

Hi,

 

I'm running a BigIP cluster with v11.2HF2. Here is my question.

 

 

I have a website hosted by a third party (let's call it THIRDPARTY) for my company (let's call it MYCOMPANY). . This site displays the THIRDPARTY logo.png on the login page, and then the MYCOMPANY logo once loggued in.

 

My customers log in at www.thirdparty.com today. I want to put MYCOMPANY logo on this login page instead of THIRDPARTY's one (who can't change this logo as it's shared among several other customers).

 

My idea is to make www.mycompany.com points to my BigIP, get some stuff rewritten so it displays my logo instead of the THIRDPARTY one, and then get everything as usual (it's not a problem if customers see www.thirdparty.com in the URL when they use the site). It's even prefered because I don't want a dependancy on my BigIPs for the entire application, I just want to handle the login page).

 

 

I already have defined my virtual server, an iFile with my logo, but I'm stuck. I've something like:

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] eq "/images/THIRDPARTY.png" } {

 

HTTP::respond 200 content [ifile get MYCOMPANY_logo_img]

 

} else {

 

??? /* show me the content of the normal site */

 

}

 

}

 

 

Can it be handled like this? Do you see another option?

 

 

Thanks!

 

 

 

 

 

17 Replies