[lighttpd] httpからhttps にリダイレクト

参考URL
http://trac.lighttpd.net/trac/wiki/HowToRedirectHttpToHttps

vi /etc/lighttpd/lighttpd.conf
-----
$SERVER["socket"] == "hoge.jp:443" {
           :
   ssl.engine                 = "enable"
   ssl.pemfile                = "/home/hoge/hoge.pem"
           :
}
else $HTTP["host"] =~ "(.*)" {
   url.redirect = (
         "^/(.*)" => "https://%1/$1",
   )
}
-----