Forum Discussion
How to create F5 home page with redirection URLs
Fernando_M Depending on how long your html code is you could probably use the following which shows a generic sorry page for when a pool is down. In your situation you can make the argument be a general response rather than making it based on active pool members.
when HTTP_REQUEST priority 500 {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 200 content {
<html>
<head>
<title>Page Not Found</title>
</head>
<body>Page Not Found</body>
</html>
}
}
}
PauliusThank you first for your feedback, in fact yes I need to make this page display automaticly when user type https://www.homepage.local and limitied by time like maintenance pages
I will try this proposal with adding HTML code of existing home page that we have and let you know
Thank you again for your support
- PauliusJun 23, 2023MVP
Fernando_M You're welcome. Keep in mind that you most likely shouldn't put much on the F5 for serving websites because it's not really a webserver but for simple sites for maintenance pages, site down pages, or general informational pages it's okay but it shouldn't be a full blown website. Ideally you should forward this request to a specific server that would respond with this page and then when the request comes back through the F5 then the F5 can make a load balancing decision based on the host and/or URI path. It is possible to serve images on this generic site by base64 encoding the file and then referencing that file on the F5 but really you should try not to do this.
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