Have a requirement and I’ll try to provide as much details as possible to help understand.
Internet users views web page, and posts web form to: htps://www.mysite.com/help/site1/search.do?book=blah
The 1st F5 (has SSL cert) receives the traffic and sends the request ( including form data, and URL and query string) to the 2nd F5 (without SSL cert, and is managed on a different dmz location) and the 2nd F5 points to webserver: HTTP://news.bizsite.com:8080/ehelp/microsites. The webserver returns the data to Internet users but the users should still see the URL they visited (htps://www.mysite.com/help/site1/search.do?book=blah)
But, “end user redirection” – e.g., issuance of an HTTP 300, 301, 302 to the end user browser, should never occur, because we want to shield the end user from the actual destination URL.
Hi Nitass, Thanks for the assistance. Would very much appreciate if you can provide the iRule syntax since I have a very little room for error as this will be done in Production environment. Thanks, Edward
Hi Nitass, Thanks for the assistance. Would very much appreciate if you can provide the iRule syntax since I have a very little room for error as this will be done in Production environment. Thanks, Edward
I forgot to mention. We don’t manage the secondary F5 and the FW above it, it’s for a different business group, they just want to use our domain’s SSL certificate but the webserver pool is on the secondary F5. Do we really need to do anything on the second F5 to make this work?
There are also existing virtual server using the “mysite.com” VIP and its SSL with a few iRules associated. Question: Do I create a separate Virtual server for this purpose and associate it’s own iRule you provided above. However as I have mentioned, the pool is on the secondary F5 that we don’t managed.
when HTTP_REQUEST { if { [HTTP::host] eq “www.mysite.com” and [HTTP::uri] starts_with “/help/site1/” } { HTTP::header replace Host “news.bizsite.com:8080” HTTP::uri [string map {“/help/site1/” “/ehelp/microsites/”} [HTTP::uri]] } }
So the the iRule above states that, when the 1st F5 sees the host “www.mysite.com” with a uri starting with “/help/site1/” and anything after it. It will pass the traffic to the 2nd F5 which has “news.bizsite.com:8080”, the 2nd F5 will get the data/forms, etc to the pool on the 2nd F5 and return it to to the Internet user’s browser. Correct for all?
I created the iRule and associated it with the existing Virtual Server for “www.mysite.com”. I’m not sure the iRule above works though. When I check the SSL dump, I didn’t see the IP of “news.bizsite.com:8080”.
when the 1st F5 sees the host “www.mysite.com” with a uri starting with “/help/site1/” and anything after it. It will pass the traffic to the 2nd F5 which has “news.bizsite.com:8080”, the 2nd F5 will get the data/forms, etc to the pool on the 2nd F5 and return it to to the Internet user’s browser. Correct for all?
yes
I created the iRule and associated it with the existing Virtual Server for “www.mysite.com”. I’m not sure the iRule above works though. When I check the SSL dump, I didn’t see the IP of “news.bizsite.com:8080”.
I appreciate your intention helping me learn. but I don’t know how to put the logging. I have little coding background. The F5 is giving me an error and as I’ve mentioned I have little room for error as this is Prod. Can you help me put the logging properly?
I’m still stuck on the 1st F5 on this iRule. Even after removing the uri, it didn’t make a difference. The log shows it’s not capturing the right uri.
There is an existing iRule which I’m thinking is conflicting with the one I created. Not sure if I should post it here or I can send it privately, let me know.
i still expect to see www.mysite.com as host and uri starts with /help/site1/ in the log. if you do not see it, i think you may need to check if host and uri information you have is correct indeed.
i still expect to see www.mysite.com as host and uri starts with /help/site1/ in the log. if you do not see it, i think you may need to check if host and uri information you have is correct indeed.