Forum Discussion
CA_Valli
Jul 23, 2024MVP
Hi, I'm not sure if I understood your request correctly. As far as I can tell, you're trying to disable SSL (HTTPS) when client tries to access specific file paths, because web server requires non-secure connection, correct?
I think that it's safer in this case to keep the connection between client and F5 secure, and perform SSL termination for these specific files only between F5 and your internal server farm.
An iRule like this might be what you're looking for
when HTTP_REQUEST {
if { [HTTP::header Content-Type] contains "text" || [HTTP::header Content-Type] contains "json" }{
# HTTP::path "/dev/data/" #This string rewrites HTTP path before sending data, I'm not sure if this is required
pool http_pool #I'd recommend configuring an HTTP pool that connects to your WS to port 80 (or custom port, if that's your setup)
}
}
when SERVER_CONNECT {
if { [LB::server port] == 80 }{ SSL::disable }
}