Forum

UrlToolkit "UseSSL" Examples

Chris Wadge
10 October 2012, 02:18
Hey Hugo,

Would it be possible to get some examples of how the UseSSL option is used? Trying to use it in my UrlToolkits doesn't seem to behave how I'd expect it to, but I'm sure I'm doing something wrong. There isn't much in the docs, and my Google searches have come up short.

Thanks!
-Chris
Hugo Leisink
10 October 2012, 09:52
I think it's better if you tell me what you try to achieve and what UrlToolkit rule you used.
The UseSSL option is very simply: execute what's behind it if the browser connected via HTTPS.
Chris Wadge
10 October 2012, 11:04
On a server with multiple vhosts, not all of them should allow SSL. I tried something like this:
UrlToolkit {
ToolkitID = demo
Match UseSSL DenyAccess
call othertoolkit
}

Hugo Leisink
10 October 2012, 11:21
Denying visitors to use SSL... that's weird. But, the UrlToolkit you need is like this:
UrlToolkit {
ToolkitID = deny_ssl
UseSSL Skip 1
Skip 1
Match .* DenyAccess
Call othertoolkit (this line is optional)
}

Instead of using the UrlToolkit, you can also take a look at the RequiredBinding option.
Chris Wadge
10 October 2012, 11:35
It would be less weird if PolarSSL supported SNI. Thanks for the tips. Oh, and speaking of PolarSSL, I dunno if you saw, but PolarSSL 1.2.0 prerelease just dropped: http://polarssl.org/news
Hugo Leisink
10 October 2012, 11:40
I know. And PolarSSL 1.2 will support SNI, on my request
Chris Wadge
11 October 2012, 03:34
Yep, I noticed that: http://polarssl.org/trac/ticket/45 Looking forward to putting this feature through its paces.
This topic has been closed.