Forum Discussion
nitass
Jun 02, 2013Employee
just another example.
e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] starts_with "www" } {
HTTP::respond 301 noserver Location "http://[string map {www abc} [HTTP::host]][HTTP::uri]"
}
}
}
[root@ve10:Active] config curl -I http://www.foo.com/something
HTTP/1.0 301 Moved Permanently
Location: http://abc.foo.com/something
Connection: Keep-Alive
Content-Length: 0
[root@ve10:Active] config