0% found this document useful (0 votes)
9 views2 pages

SLB Exercise: URL Grouping & Redirects

The document outlines the creation of two groups and three content classes with specific URL matches for a web service. It includes instructions for redirecting traffic from www.x.lab to www.y.lab, denying access to www.z.lab, and displaying a custom denial page. Additionally, it provides a script for handling HTTP requests and responding with a message when a specific rule is matched.

Uploaded by

Mustafa ÇİÇEK
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

SLB Exercise: URL Grouping & Redirects

The document outlines the creation of two groups and three content classes with specific URL matches for a web service. It includes instructions for redirecting traffic from www.x.lab to www.y.lab, denying access to www.z.lab, and displaying a custom denial page. Additionally, it provides a script for handling HTTP requests and responding with a message when a specific rule is matched.

Uploaded by

Mustafa ÇİÇEK
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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

You might also like