Forum Discussion
Anthony_Fornito
Nov 22, 2017Cirrus
regex HTTP::header replace "Host"
I am trying to create an irule that can use a regex like:
/^([\s\S]?)(domain.com)./g
So if a user types:
domainname.com
abc.domainname.com
abc.domainname.com\xyz
It will still work.
Cur...
Anthony_Fornito
Nov 22, 2017Cirrus
I do not see an edit button but the irule would look like.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] ] contains "/?node=1" } {
HTTP::header replace "Host" "/^([\s\S]*?)(domainname.com).*(node=1)/g"
HTTP::path "/"
node 192.168.70.57 443
}
}
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