Forum

Environment variable usage

Gerald HILD
7 March 2018, 11:31
Hello,
I have a little problem with URLToolkit.
Is it possible to use environment variable in redirect command ?
I want to redirect http to https but my product doesn't use name to access but it use IP address.
I make a URLToolkit like this:
UrlToolkit {
ToolkitId=SSL
UseTLS return
Match (.*) Redirect https://{HTTP_HOST}{REQUEST_URI}
}

If I connect to my website with http://192.168.1.1 , the redirection is https://{HTTP_HOST}{REQUEST_URI} and not the https://192.168.1.1.
My question is : Is it possible to use environment variable and how to use them ?
Thank you for your help!
Hugo Leisink
8 March 2018, 13:10
That is not possible in Hiawatha. But you can use the RequireTLS setting instead.
This topic has been closed.