Tutorials How to Set Up Multiple Domains SSL Certificates on One IP lighttpd

Marks-Man

Administrator
Code:

Code:
###Multiple SSL
$HTTP["scheme"] == "https" {
$HTTP["host"] =~ "MainServerIP$" {
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/root/newssl/merged.pem" # Combined Certificate
ssl.ca-file = "/root/newssl/cert.pem" # Root CA
server.document-root = "/var/www/html/work3" # Document Root
server.errorlog = "/var/log/lighttpd/example.com_error.log"
accesslog.filename = "/var/log/lighttpd/example.com_access.log"


}
}
}
#####Multiple SSL
$HTTP["scheme"] == "https" {
$HTTP["host"] =~ "ex1.thejavasea\.com$" {
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/root/newssl/merged.pem" # Combined Certificate
ssl.ca-file = "/root/newssl/cert.pem" # Root CA
server.document-root = "/var/www/html/work3" # Document Root
server.errorlog = "/var/log/lighttpd/example.com_error.log"
accesslog.filename = "/var/log/lighttpd/example.com_access.log"


}
}
}

Order is important because lighttpd works in priorities!

Continue reading...
 
Top