]> lifelog.hopto.org Git - LifeLog.git/commitdiff
lighttpd instructions and scripts.
authorWill Budic <redacted>
Tue, 15 Oct 2019 06:36:05 +0000 (17:36 +1100)
committerWill Budic <redacted>
Tue, 15 Oct 2019 06:36:05 +0000 (17:36 +1100)
Installation.txt
htdocs/cgi-bin/e_vars.pl [changed mode: 0755->0644]
lighttpd.conf [new file with mode: 0644]
runWebServer.sh [new file with mode: 0755]

index bcd8b0682e099e2c2ae534fbcdd8a6051e1e7841..b746eb96a7eb9e8eade8b54f5cd8eec80056c2ec 100644 (file)
@@ -10,7 +10,7 @@
 
            
 
-#Install tiny thttpd web server.
+## Install tiny thttpd web server. ##
 
 https://acme.com/software/thttpd/
 
@@ -54,6 +54,14 @@ The full URL to the LifeLog is the following link (if not working try without cg
 #
 #
 
+
+## Run using Lightthpd Web Server
+Modify the the config file, lighttpd.conf. To suit the path where you pulled the git repository, of LifeLog.
+With:
+git clone https://github.com/wbudic/LifeLog.git
+
+
+
 #Install cpanm to make installing other modules easier (you'll thank us later). 
 You need to type these commands into a Terminal emulator (Mac OS X, Win32, Linux)
 sudo apt install cpanminus
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644 (file)
index 0000000..dcb8225
--- /dev/null
@@ -0,0 +1,33 @@
+server.document-root = "/home/will/dev/lighttpd/LifeLog/htdocs" 
+
+server.port = 3000
+
+mimetype.assign = (
+  ".html" => "text/html", 
+  ".txt" => "text/plain",
+  ".jpg" => "image/jpeg",
+  ".png" => "image/png",
+  ".css" => "text/css",
+  ".js" => "text/javascript" 
+)
+
+server.modules = (
+"mod_access",
+"mod_accesslog",
+"mod_auth",
+"mod_expire",
+"mod_compress",
+"mod_redirect",
+"mod_setenv",
+"mod_rewrite",
+"mod_alias",
+"mod_cgi"
+)
+
+
+index-file.names = ( "index.html" )
+server.breakagelog = "/home/will/dev/lighttpd/breakage.log"
+cgi.assign = ( ".pl"  => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" )
+cgi.x-sendfile = "disable"
+
+
diff --git a/runWebServer.sh b/runWebServer.sh
new file mode 100755 (executable)
index 0000000..d713784
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+lighttpd -D -f lighttpd.conf