Forum Discussion
JosephT
Nimbostratus
Jun 13, 2008iRule redirect help
I have an irule that redirects all traffic to https:
rule https.redirect.irule {
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
} ...
The_Bhattman
Nimbostratus
Jun 14, 2008It should as so long as it's http coming into a VIP on tcp port 8004.
Since i wasn't sure what error you recieved, but you could verify by place a debug stastement into the code
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
log local0. "Client [IP::client_addr] requested [HTTP::host][HTTP::uri]
}
}
when you test the redirect the "Client..." will be logged into the /var/log/ltm file on the LTM.
hope this helps,
CB
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
