summaryrefslogtreecommitdiff
path: root/usr/local/etc
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-07-03 10:48:05 -0400
committerAdam T. Carpenter <atc@53hor.net>2021-07-03 10:48:05 -0400
commit5154120849a68db184648da7034e5c5ce27ea04c (patch)
tree4ca773064f179b624cf666ac40ffc7fcbe731faf /usr/local/etc
parent45bef0968ae13c5167fec8df37c03413330ea9c8 (diff)
downloadcarpentertutoring-5154120849a68db184648da7034e5c5ce27ea04c.tar.xz
carpentertutoring-5154120849a68db184648da7034e5c5ce27ea04c.zip
added CGI module, updated to pull new site and depends
Diffstat (limited to 'usr/local/etc')
-rw-r--r--usr/local/etc/lighttpd/conf.d/cgi.conf2
-rw-r--r--usr/local/etc/lighttpd/lighttpd.conf7
2 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/etc/lighttpd/conf.d/cgi.conf b/usr/local/etc/lighttpd/conf.d/cgi.conf
new file mode 100644
index 0000000..8cc92db
--- /dev/null
+++ b/usr/local/etc/lighttpd/conf.d/cgi.conf
@@ -0,0 +1,2 @@
+server.modules += ( "mod_cgi" )
+cgi.assign = ( ".php" => "" )
diff --git a/usr/local/etc/lighttpd/lighttpd.conf b/usr/local/etc/lighttpd/lighttpd.conf
index c965f3f..0746ae6 100644
--- a/usr/local/etc/lighttpd/lighttpd.conf
+++ b/usr/local/etc/lighttpd/lighttpd.conf
@@ -1,11 +1,12 @@
-# TODO: use kqueue
var.log_root = "/var/log/lighttpd"
include "conf.d/access_log.conf"
include "conf.d/mime.conf"
-index-file.names += ("index.html")
+include "conf.d/cgi.conf"
+index-file.names += ("index.php")
+server.breakagelog = log_root + "/breakage.log"
server.document-root = "/var/www"
server.errorlog = log_root + "/error.log"
+server.groupname = "www"
server.network-backend = "sendfile"
server.port = 80
server.username = "www"
-server.groupname = "www"