Forum Discussion
Janez
Nimbostratus
Jan 29, 20202 different URI (on the same VIP) call to same server
Hi Team, I needs to create irule (or policy) for the below request, please suggest me how to do: Calls https://test.com should to go real server with https://192.168.10.5 Calls https://t...
Samir
MVP
Feb 01, 2020How many Pool members are there behind application "test.com", If only one then all request will be served to node "192.168.10.5" and simple iRule is enough to serve request. No issue with SSL certificate.
when HTTP_REQUEST {
if {[HTTP::host] ne ""}{
HTTP::respond 301 Location "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
} else {
HTTP::respond 301 Location "https://[IP::local_addr][HTTP::uri]"
}
} Hope it will work for you.
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
