Forum Discussion
How to create F5 home page with redirection URLs
Hi Fernando_M ,
I have written this irule for you , it as follow :
when HTTP_REQUEST {
HTTP::respond 200 content {
<html>
<head>
</head>
<title>https://www.homepage.local</title>
<body>
<h1>Click one of below Links and enjoy</h1>
</body>
<body>
<p>
<a href="https://www.solution01.local">Solution 01</a>
This is for https://www.solution01.local
</p>
</body>
<head>
</head>
<body>
<p>
<a href="https://www.solution02.local">Solution 02</a>
This is for https://www.solution02.local
</p>
</body>
</html>
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Create the below >>
1) Two separate Virtual servers for Solution 1 and Solution 2 and attach the required pools as you mentioned in your inquiry.
2) the irule will embed these urls in the web page and will be depend on your choice ( Solution 01 or Solution 02 )
3) Create The main Virtual server for this url https://www.homepage.local and map it to main virtual server IP.
you will need only to add assign http profile / Client ssl if there is ssl and attach the above irule to it without pools or anything else.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
you should see the below web page after when enter https://www.homepage.local
According to my code : Solution 01 >>> includes embeded https://www.solution01.local & Solution 02 >>> includes embeded https://www.solution02.local
you can Customize according your environment.
Finally this is should be your traffic Flow :
I tested each step and it worked with me.
Some hints :
>> Don't forget to make sure that https://www.solution01.local Resolves to Solution01_VS IP & https://www.solution02.local Resolves to Solution02_VS IP.
>> you can Customize your ( Solution01_VS & Solution02_VS ) to single virtual server , but you will need to create another iRule to select proper pool depending on the " Hostname " that comes in the request.
Please Test it and let me know how it works with you 🙂
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com