Forum Discussion
Terrence
Nimbostratus
Jul 09, 2009Writing a generic Irule
A while back I took the LTMMaintenancePage to serve up a maintenance page for the web application. We are about to load balance a second application and would also like to use the maintenance page. ...
hoolio
Cirrostratus
Jul 09, 2009What you've got should be equivalent:
set site_name [HTTP::host]
set index_html [string map "SITE $site_name" ${::template}]
HTTP::respond 200 content $index_html "Content-Type" "text/html"
HTTP::respond 200 content [string map "SITE [HTTP::host]" ${::template}] "Content-Type" "text/html"
You could remove the curly braces in $::template, but they don't hurt anything by being there.
Is that what you were looking for? I'm not sure what you meant by "This isn't ideal as something HTTP:host is not the name of the application.".
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