Forum Discussion
Romain_H_78910
Nimbostratus
Nov 27, 2009v10.0.1 - HTTP custom error pages through iRule
Hi there,
We are experiencing a problem with our custom error pages after upgrading our viprion chassis from 9.6 to 10.0.1.
here's the code:
b...
hoolio
Cirrostratus
Nov 27, 2009Hi Romain,
In 10.x, you can no longer access classes directly as TCL lists. So instead of lindex, you can use the new class command (Click here):
HTTP::respond 400 content [class element -value 0 class_badrequest_page] "Content-Type" "text/html"
If you're using an external file you'll want to change the format to use := as the separator (replacing test with the actual html):
cat /var/class/badrequest.html
html := "test",
The class page has an example of this.
Aaron
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
