• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.

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


🦊 DNSProxy Layer 7 DDOS Protection 🥷 / DMCA Ignored 🫡 / Advanced Browser Checks 🕸

XMAN

Well-known member
Joined
Jul 12, 2021
Messages
33,393
Reaction score
248
Points
63
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