Forum Discussion
hooleylist
Jun 23, 2010Cirrostratus
It would be simplest if you configured one HTTP VS and one HTTPS VS. You could then redirect all requests to the HTTP VS to HTTPS using an iRule like this:
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]
}
You can use a separate iRule for the HTTPS VS to only allow access to the /analytics URI:
when HTTP_REQUEST {
Check if URI is not exactly /analytics
if {not ([HTTP::uri] eq "/analytics")}{
reject
}
}
Aaron