Forum Discussion
Stanislas_Piro2
Feb 09, 2018Cumulonimbus
Hi,
you have to create 2 virtual servers:
- http virtual server to redirect HTTP URLs to HTTPS. assign the default _sys_https_redirect irule.
- https virtual server to manage
Apply this irule to the HTTPS virtual server
HTTPS virtual server irule
when HTTP_REQUEST {
switch -glob -- [HTTP::path] {
"/wfc/logon" {
switch -glob -- [URI::query [HTTP::uri] app] {
"ap1" {
pool Kronos member 192.168.1.121 80
HTTP::uri "/wfc/logon"
}
"ap2" {
pool Kronos member 192.168.1.122 80
HTTP::uri "/wfc/logon"
}
default {pool Kronos }
}
}
"/ap1" {HTTP::respond 307 Location "/wfc/logon?app=ap1" }
"/ap2" {HTTP::respond 307 Location "/wfc/logon?app=ap2" }
"/" {HTTP::respond 307 Location "/wfc/logon" }
}
}