Content SLB Exercise
Create 2 Groups:
Real 1 – in One Group
Real 2 – Second Group
Create 3 content classes with URL match
[Link]
[Link]
[Link]
Service 80 redirect [Link] to [Link] and group 2
[Link] = deny
Set a sorry page for when the service is denied with AppShappe++
Set Default group to group 1
Change host file on local computer www.x/y/[Link] = <lab url>
Script
when INIT {
set static::STATUS_CODE "200"
set static::CONTENT “Website [Link] is not in service please check back soon"
when HTTP_CRULE_MATCH {
if { [HTTP::crule] == “<Rule ID in Service>" } {
HTTP::respond $static::STATUS_CODE content $static::CONTENT
}}
-----END