Forum Discussion
F5-Hopeful
Nimbostratus
Oct 10, 2019Session table with Virtual Command
Is anyone able to tell me if you can store data in the session table using an iRule on one VS then recover it on a second VS, if the second VS is called via the virtual command in an iRule on the fir...
Another option would be to name the virtual server with the FQDN that is in DNS and then parse [virtual name] to get the correct hostname. You could avoid manually configuring the IP to hostname mappings with this. A caveat is that you can't rename virtual servers via the GUI. The example below uses the virtual server name up to the first underscore:
virtual www.example.com_http_vs {
destination 10.1.0.15:80
ip protocol tcp
rules vs_name_to_redirect_rule
profiles {
http {}
tcp {}
}
}
when HTTP_REQUEST {
log local0. "parsed https://[getfield [virtual name] _ 1][HTTP::uri]"
HTTP::redirect "https://[getfield [virtual name] _ 1][HTTP::uri]"
}
Aaron
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