Forum Discussion
Anhtuan_Huynh_1
Nimbostratus
Nov 29, 2005iRule to redirect to new pool and sending it to the SSL proxy (HTTPS) does not work
Hi all -
I have a little problem that could probably be answered
very quickly here given the expertised. I have included
data from the techout ran on the bigip.
platform...
Martin_Machacek
Dec 03, 2005Historic F5 Account
Anhtuan,
I'd love to help you but I can't because you've not posted enough of your configuration. The 127.0.0.243:80 virtual is missing. Also it is not entirely clear to me what really happens and what you'd like to happen. Having said that, I'm 99% sure that the problem is not in the iRule. The rule looks correct (assuming that I understand correctly what it is supposed to do. In order to troubleshoot the problem, you can logging statements to your rules to see whether requests are passed to them and which braches are bing triggered. Example:
if (http_uri contains "newapp") {
log local0.debug "request from: " + client_addr + " url: " + http_uri + " redir to https://" + http_host + "/newapp"
redirect to " https://%h/newapp"
}
else {
log local0.debug "request from: " + client_addr + " url: " + http_uri + " redir to https://" + http_host + "/CTP.ecocp"
redirect to " https://%h/CTP.ecocp"
}
This will log messages similar to the following to /var/log/bigip:
Dec 2 17:06:12 b1 kernel: RULE url_switch - request from: 10.66.66.1 url: /newapp redir to https://10.66.66.167/newapp
if the rules is really being used.
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