From: Will Budic Date: Tue, 15 Oct 2019 06:36:05 +0000 (+1100) Subject: lighttpd instructions and scripts. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=38aa407ae96783481a64e15672d3a4ea1e83eabc;p=LifeLog.git lighttpd instructions and scripts. --- diff --git a/Installation.txt b/Installation.txt index bcd8b06..b746eb9 100644 --- a/Installation.txt +++ b/Installation.txt @@ -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 diff --git a/htdocs/cgi-bin/e_vars.pl b/htdocs/cgi-bin/e_vars.pl old mode 100755 new mode 100644 diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..dcb8225 --- /dev/null +++ b/lighttpd.conf @@ -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 index 0000000..d713784 --- /dev/null +++ b/runWebServer.sh @@ -0,0 +1,2 @@ +#!/bin/bash +lighttpd -D -f lighttpd.conf