Forum Discussion
MSK_222682
Mar 06, 2016Nimbostratus
w3c iRule logging for Virtual Servers having http to https redirection iRule
Hi,
I have been asked to verify the VS without w3c iRule in our LTMs and attach this iRule to them. Now, I have many VS in LTMs which have http to https redirection iRule attached to them and w3...
nitass_89166
Noctilucent
Could anyone of you please confirm whether I have to attach w3c iRule to both VS listening on http and https or would it suffice if I only attach it to VS with https as requests to http would be redirected to https VS. If I add w3c to both of the VS (http & https) would this create redundant logs as traffic to VS:http are redirected to VS:https.
i think only https virtual server. i understand HTTP_RESPONSE is not triggered by HTTP::redirect command.
e.g.
[root@ve11c:Active:In Sync] config tmsh list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
_sys_https_redirect
qux
}
source 0.0.0.0/0
vs-index 8
}
[root@ve11c:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
log local0. ""
}
when HTTP_RESPONSE {
log local0. ""
}
}
[root@ve11c:Active:In Sync] config
[root@ve11c:Active:In Sync] config curl -i http://172.28.24.10
HTTP/1.0 302 Found
Location: https://172.28.24.10/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve11c:Active:In Sync] config cat /var/log/ltm
Mar 6 11:19:34 ve11c info tmm[14163]: Rule /Common/qux :
[root@ve11c:Active:In Sync] config
MSK_222682
Mar 06, 2016Nimbostratus
okay. So is it sufficient if we attach w3c iRule only to VS:https instead of both VS:https & VS:http ???
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