Forum Discussion
TMcGov_92811
Nimbostratus
Dec 04, 2009iRule for LTM to send HTTP Error code
Hello, I have a simple iRule that directs HTTP requests to certain pools based on the URI. If there is a URI that is not specified in the iRule, I would like the LTM to respond with an HTTP Error code...
TMcGov_92811
Nimbostratus
Dec 08, 2009The "valid" requests (ones with the specified URIs) are going to the correct pools. When I enter an invalid URI, I expect the LTM to return my customized 404 error page, but I only get the generic one.
This piece of code seems to do the trick however. Its technically not a 404 error page, but I think it should do the trick - I will check with my middleware team. I would like to figure out how to customize a 404 error page though in case they actually need a 404 response.
default {
HTTP::respond 200 content {
Application Services - Page Not Valid
The page you have requested is not valid.
Please check the URL and try again.
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
