From 34a0dc57dc874ef9c128be61c94173dc81a30c76 Mon Sep 17 00:00:00 2001 From: Will Budicm Date: Sat, 29 Aug 2020 21:08:07 +1000 Subject: [PATCH] Updated lighttpd config. --- lighttpd.conf | 19 ++++++++++++++----- startLightHTTPServer.sh | 4 ++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100755 startLightHTTPServer.sh diff --git a/lighttpd.conf b/lighttpd.conf index a117e4a..1ccacc5 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -1,14 +1,14 @@ server.document-root = "/home/will/dev/LifeLog/htdocs/cgi-bin" -server.port = 3000 +server.port = 80 mimetype.assign = ( - ".html" => "text/html", + ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", ".css" => "text/css", - ".js" => "text/javascript" + ".js" => "text/javascript" ) server.modules = ( @@ -21,13 +21,22 @@ server.modules = ( "mod_setenv", "mod_rewrite", "mod_alias", -"mod_cgi" +"mod_cgi", +"mod_openssl" ) index-file.names = ( "index.html" ) -server.breakagelog = "/home/will/dev/lighttpd/breakage.log" +server.breakagelog = "/home/will/dev/LifeLog/dbLifeLog/lighttpd_server.log" cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" ) cgi.x-sendfile = "disable" +$SERVER["socket"] == ":443" { + +ssl.engine = "enable" +## Selfsigned SSL Certificate location created with openssl req -x509 -newkey rsa:4096 -sha256 ...etc... +ssl.pemfile = "/home/will/dev/elite.net.pem" +server.name = "elite.net" + +} diff --git a/startLightHTTPServer.sh b/startLightHTTPServer.sh new file mode 100755 index 0000000..4d246e7 --- /dev/null +++ b/startLightHTTPServer.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +#Starting here in console mode. +sudo lighttpd -D -f ~/dev/LifeLog/lighttpd.conf \ No newline at end of file -- 2.34.1