Forum Discussion
jondyke_46152
Jul 15, 2011Nimbostratus
https to https redirect to different hostname
I know there are a bunch of redirect irules out there already (I have a few I am already playing with) but I was wandering if how straight forward it would be to do the following:-
SiteA is a VS that is SSL Offloaded on the F5
SiteB is a different VS (different hostname) that uses SSL Passthrough (not offloaded)
I would like to redirect any traffic that hits to without the user getting any kind of certificate mistmatch error.
- Colin_Walker_12Historic F5 AccountHmmm, I'd have to test this as I think your user might get a warning regardless when redirecting away from an SSL site. Not a cert mismatch error, but a warning that the site is sending you elsewhere.
- jondyke_46152NimbostratusTurns out that is not what they wanted at all. What they wanted was to change the middle of the URL whilst leaving the ending alone.
when HTTP_REQUEST { Check if path starts with http://centraldatawebpublicdev.assureweb.co.uk/DocumentRenderer.svc if { [string tolower [HTTP::path]] starts_with "/DocumentRenderer.svc"}{ Replace https://centraldatawebpublicdev.assureweb.co.uk/DocumentRenderer.svc with https://aswmaindev.assureweb.co.uk/UiServices/UiServices.Public/DocumentRenderer.svc in the path HTTP::redirect [string map {https://centraldatawebpublicdev.assureweb.co.uk/DocumentRenderer.svc https://aswmaindev.assureweb.co.uk/UiServices/UiServices.Public/DocumentRenderer.svc} [string tolower [HTTP::path]] ] } }
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