1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ssl/kms.pem" $HTTP["host"] =~ "www.gworg.com" { server.document-root = "/home/wwwroot/kms/public" accesslog.filename = "/var/log/lighttpd/kms/access.log" server.error-handler-404 = "/404.html" } } $HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") } } |
Copyright © 1998 - Gworg, Inc. All Rights Reserved. 江苏光网数字认证有限公司版权所有
苏ICP备15058404号 苏公网安备32058202010008号