Forum Discussion
george_burtz_31
Nimbostratus
Feb 02, 2005requiring client SSL based on URI
Question about writing an iRule for v 903.
Our developers have created a web app that is listed as www.domain.com/folder. When you hit that site, IIS does a redirect to www.domain.com/secure-folder where the application lives.
We want to use the LTM to offload the SSL processing from the server. I also want to use the LTM to do the redirects - that seems to work OK w/ a basic iRule.
I can't get the SSL to work based on the URI /secure-folder. Is that possible? Anyone have an idea how to do this?
- rapmaster_c_127Historic F5 AccountHave you tried setting up two virtual servers, one on port 80 using profile http, and tcp, and the other using profile http, clientssl and tcp and using a rule?
virtual http-www.example.com { destination 192.168.1.1:80 ip protocol tcp profile http tcp oneconnect pool non-secure rule redir } virtual https-www.example.com { destination 192.168.1.1:443 ip protocol tcp profile myclientssl tcp pool secure } rule redir { when HTTP_REQUEST { if {[HTTP::uri] starts_with "/folder"} { HTTP::redirect "https://www.example.com/secure-folder" } } }
redirect rewrite matching
- george_burtz_31
Nimbostratus
Thanks!!!! Adding the trailing / on the redirect did it. The original problem was that when the redirect happened, the SSL was not working. Here's the actual config in the box now.
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