Forum Discussion
rhino_109458
Nimbostratus
Jan 18, 2012help on irule redirect
hello
f5 noob here
i have a machine running different virtual servers
i want to make a simple redirect to a speciffic URL and found this on some other posts
when HTTP_REQUEST
{
if { [HTTP::host] equals https://aaa.com} { HTTP::redirect https://aaa.com/hello }
}
though i get no errors when saving the irule typing in the browser https://aaa.com i get to my custom error page
on the log i can see that there was a block on /
seems to me the irule is not working
some help please?
thanks
12 Replies
- hoolio
Cirrostratus
You should see at least one log line per HTTP request from this log statement:
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host][HTTP::uri]"
Do you see that in the /var/log/ltm file when you test? If not, can you verify that you're testing to the same virtual server that you've enabled the iRule on?
Aaron - Arie
Altostratus
1) What do your HTTP Headers show?2) Are you seeing the traffic in your IIS Logs?
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
