Greetings.
I have an LB that offloads SSL and forwards to Hiawatha using HTTP... I'd like to force the use of HTTPS, and I can't do that on the LB- I can accomplish it with Hiawatha using the X-Forwarded-Proto in a UrlToolkit; like this:
VirtualHost {
Hostname = www.website.net, *.website.net
...
UseToolKit = https_trampoline
}
UrlToolKit {
ToolkitID = https_trampoline
Header X-Forwarded-Proto https Return
Match ^/(.*) Redirect https://www.website.net/$1
}
Question is- Is there a better, more generic way to do this? Ideally, I'd like toolkit to make it so requests to http://*.website.net/ redirect to https://*.website.net/ (as opposed to always going to https://www.website.net/ ...that would also mean I could use the same trampoline for other virtual hosts).
I've had a look around to not avail... And I can't seem to figure it out. Any advice would be appreciated.
Thanks!