Hi Alvaro,

On 16/01/11 10:39, Alvaro Lopez Ortega wrote:
Hello Chris,

On 16/01/2011, at 11:18, Chris Malton wrote:

Perhaps Cherokee could offer a built in SSL upgrade using the (not recommended, but supported) 301 response?

Sure. Actually, it does already.

Add a new behavior rule in the virtual server you want to restrict access to. Place it on the top of the list, and ensure it's marked as Final. The match should be "NOT (TLS/SSL)", and the handler "Redirection". Then you add an External entry:

  Regular Expression: ^/(.*)$
  Substitution: https://${host}/$1 <https://$%7Bhost%7D/$1>

Why is it that I didn't spot this when I was using Cherokee!? It's so obvious!

Chris
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to