Forum Discussion
Parveez_70209
Nimbostratus
Jun 03, 2015Redirection of the URL based on Source Segment
Hi,
I have two Virtual-Servers named and having same VIP 10.20.20.20.
Both have respective pools named member 10.1.1.1:80) and member 10.1.1.1:443 )
DNS entry URL name lets say: ww...
Scott_Hopkins
Nimbostratus
Jun 03, 2015You should be able to do an iRule for that pretty straight forward.
Default pool for each VS should be it's matching pool. (HTTPS->HTTPS, HTTP->HTTP).
A simple lookup like this will redirect anything that doesn't existing in a data group (defined as an 'address' type) to the internet encrypted side.
when HTTP_REQUEST {
if { ! [class match [IP::client_addr] equals internal_subnets] } {
HTTP::redirect "https://www.test.com[HTTP::uri]"
}
}
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