--- /dev/null
+# Compile/Install LightHTTPD with SSL Support
+
+sudo apt install libssl-dev
+./configure --prefix=/usr/local/lighttpd --with-openssl --with-sqlite
+make
+sudo make install
+
+#check SSL enabled with:
+lighttpd -V
+
+## Create Selfsigned SSL Certificate
+
+openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
+ -keyout elite.key -out elite.crt -subj "/CN=elite.net" \
+ -addext "subjectAltName=DNS:elite.net,DNS:www.elite.net,IP:192.168.1.45"
+
+cat elite.key elite.crt > elite.net.pem
+
+## Setup virtual Host with SSL
+
+To set up Virtual Host with SSL, edit lighttpd config file /etc/lighttpd/lighttpd.conf with the following values.
+
+#Add "mod_openssl" to server module list.
+server.modules = ( "mod_access",
+ "mod_setenv",
+ ...
+ "mod_openssl"
+)
+
+
+$SERVER[“socket”] == “:443” {
+
+ssl.engine = “enable”
+ssl.pemfile = “/etc/lighttpd/ssl/elite.net.pem”
+
+# ssl.ca-file = “/etc/lighttpd/ssl/CA_issuing.crt”
+
+server.name = “elite.net”
+server.document-root = “/sites/vhosts/elite.net/public”
+server.errorlog = “/var/log/lighttpd/elite.net.error.log”
+accesslog.filename = “/var/log/lighttpd/elite.net.access.log”
+
+}
+
+## Start "lighty" with -D option for interactive console trouble shooting and testing.
+
+lighttpd -D -f ~/dev/LifeLog/lighttpd.conf
+