Forum Discussion

Keith_Bobitt_10's avatar
Keith_Bobitt_10
Icon for Nimbostratus rankNimbostratus
Jun 01, 2005

Https to http redirect

I have the following rule defined and applied:

 

 

if (http_uri contains "/test/app") {

 

redirect to "http://pilot:7777/app/"

 

}

 

else {

 

use pool OracleWeb

 

}

 

 

 

 

 

The URL coming in is:

 

 

https://www.somehost.org/test/app/

 

 

I need to redirect to:

 

 

http://pilot:7777/app/

 

 

 

The rule doesn't seem to work. Any Advice?

 

 

Thanks
  • bknotwell_12713's avatar
    bknotwell_12713
    Historic F5 Account
    Hi Keith--

     

     

    Assuming I understand your problem correctly, you're not going to be successful without using a proxy that points at your (probably moved to the loopback) virtual server.

     

     

    Specifically, I think you're trying to look inside a packet that's encrypted. Unless you terminate the encryption with a proxy, you'll not be able to do the redirect.

     

     

    Good luck!
  • Thanks for the reply.

     

     

    Perhaps a little more info.

     

     

    www.somehost.org is our forward facing F5 which hosts the certs for everything behind it.

     

     

    Pilot is a machine behind the F5.

     

     

    Shouldn't the F5 be able to recognize the string in the incoming URI and do the redirect?

     

     

     

    Thanks

     

     

     

     

  • bknotwell_12713's avatar
    bknotwell_12713
    Historic F5 Account
    Is the request coming in unencrypted? If it is (because it's terminated at the previous machine or at the current machine), you should be able to recognize the uri without a problem.

     

     

    If it's *still* encrypted, we won't be able to see it unless it's terminated at a local proxy (which is targetted at a pool).

     

     

    Good luck!