Skip to content

Instantly share code, notes, and snippets.

@xianhuazhou
Created May 22, 2011 03:49
Show Gist options
  • Select an option

  • Save xianhuazhou/985157 to your computer and use it in GitHub Desktop.

Select an option

Save xianhuazhou/985157 to your computer and use it in GitHub Desktop.
# openssl req -new -x509 -keyout server1.pem -out server1.pem -days 365 -nodes
# chmod 400 server1.pem
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
}
if $HTTP["HOST"] == "a.kom" {
ssl.pemfile = "/usr/local/lighttpd/etc/server1.pem"
}
if $HTTP["HOST"] == "b.kom" {
ssl.pemfile = "/usr/local/lighttpd/etc/server2.pem"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment