Forum Discussion
fyi
Jul 22, 2024Nimbostratus
How exclusion url path file to without https
Hi , i want to exclusion my url path without https using irule, for example all trafic to : https://myweb.com and if access to this url without https to http://myweb.com/dev/data/ my exist...
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 }
}
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