Forum Discussion
Adnankhan
Dec 09, 2020Nimbostratus
Url redirect
Hello Everyone, I would like to do the following, Any help would be appreciated. I have 3 URLs abc.org, def.org and ghi.org they all point to the same vip, i would like, when user go to ...
Dec 09, 2020
Hi Adnankhan,
I guess your test client's traffic isn't pass over F5.
Can you review the logs and tcpdump?
when HTTP_REQUEST {
log local0. "vslog1 | CIP: [IP::client_addr] | Host: [HTTP::host]"
switch [HTTP::host] {
"abc.org" {
log local0. "vslog2 | CIP: [IP::client_addr] | Host: [HTTP::host]"
HTTP::respond 301 Location "http://xyz.com[HTTP::uri]"
return
}
}
}
logs:
tail -f /var/log/ltm | grep vslog
tcpdump:
tcpdump -ni 0.0 host <virtualserverIP> and host <clientIP>
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