Lighttpd: HTTP and HTTPS Simultaneously


#1

Hi is it possible to configure lighttpd to serve pages for http and
https requests simultaneously? I would like users to be able to access
my site securely or non-securely where the choice is theirs.

The only instructions I can find to do this involve creating two
copies of the lighttpd application
(http://wiki.archlinux.org/index.php/Lighttpd_For_Both_SSL_And_Non-SSL).
Is there any way to do it just by editing lighttpd.conf?

Thanks a lot,
Scott


#2

Scratch that, figured it out myself:

$SERVER[“socket”] == “:80” {
}

$SERVER[“socket”] == “:443” {
ssl.engine = “enable”
ssl.pemfile = “/var/www/test/public/test.org.pem”
}