cancel
Showing results for 
Search instead for 
Did you mean: 

redirect an external https request to an internal website and append a URI

malcolm1
Nimbostratus
Nimbostratus

Hi All

 

I have a website that is to be accessed from external to my network. the request will hit my F5 in the DMZ and then be reversed proxied to an internal F5. This internal F5 will then load balance to a set of webservers and then a uri will be appended so that it can hit a specific page.

 

I have tried the redirect irule but this just send the redirect to external source who then cannot process the redirect because it is not accessible directly outside.

 

the flow is as follows 1. External user types in webpage address e.g https://test.company.com 2. This hits a virtual ip in my DMZ e.g 1.1.1.1 3. This reverse proxies to a virtual ip hosted on my internal F5 e.g 2.2.2.2 4. this then load balances to 2 webservers e.g 3.3.3.3 and 4.4.4.4 and appends a uri /login

 

Any ideas on how to achieve this

 

2 REPLIES 2

Jinshu
Cirrus
Cirrus

Can you keep your DMZ VIP settings and try below iRule in Internal F5 VIP?

 

when HTTP_REQUEST { if { ([string tolower [HTTP::uri]] equals "/")} { HTTP::uri "/login" } }

-Jinshu