Forum Discussion
Scott_82463
May 26, 2011Nimbostratus
HTTPS Request?
I'm trying to configure an iRule on a dev F5 device that uses HTTP_REQUEST, but the virtual machine where the F5 is installed doesn't accept HTTP traffic, only HTTPS requests. Are there iRules that d...
nitass
Jun 07, 2011Employee
just for example. hope this helps.
mgmt 172.28.16.16 {
netmask 255.255.255.0
}
self 172.28.17.40 {
netmask 255.255.255.0
vlan external
allow default
}
virtual bar {
destination 172.28.17.44:https
ip protocol tcp
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] eq "/mytest" } {
log local0. "Hello World"
HTTP::respond 200 content "Hello World" "Content-Type" "text/xml"
}
}
}
curl -ik https://172.28.17.44/mytest
HTTP/1.0 200 OK
Content-Type: text/xml
Server: BigIP
Connection: Keep-Alive
Content-Length: 11
Hello World
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