Forum Discussion
jeff_parten_106
Nimbostratus
Nov 27, 2006many to one uri redirect
Good day to all,
If someone could please point me in the correct direction, it would be greatly appreciated.
We have over 100 domain names all pointing to one address (e.g., sleeping...
hoolio
Cirrostratus
Nov 28, 2006Hello,
Can you explain in more detail what you are trying to do? It sounds like you have two VIPs on the same IP address: one on :80 and one on :443? Which VIP are you applying the redirect rule to?
If you're apply it to the HTTP VIP, it should work without any issues, redirecting all requests to pinocchio.com to http://www.disney.com.
If you're applying it to the HTTPS VIP, the client would be making a request to www.pinocchio.com but get the SSL cert for www.disney.com presented. This would cause a hostname mismatch error and generate a prompt to accept the cert by the browser.
To get a better idea of what's happening, try adding a logging statement to the rule. You may also want to set the host header value to lower case if the client could send a request in mixed case:
when HTTP_REQUEST {
log local0. "client [IP::client_addr] requested [HTTP::host][HTTP::uri]"
if { [string tolower [HTTP::host]] contains "pinocchio.com" } {
HTTP::redirect "http://www.disney.com"
}
}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
