summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-09-12 17:34:00 -0400
committer53hornet <atc@53hor.net>2021-09-12 17:34:00 -0400
commit06c8c0ba0aadf73e8ed9d5c4ace5b52b974c3b50 (patch)
tree36226807f2eac78de6f5fc4acb0d3f0b00a0f824 /usr
parentd6b256537a9efacb89b4fae5709dbb55f1934501 (diff)
downloadwww-06c8c0ba0aadf73e8ed9d5c4ace5b52b974c3b50.tar.xz
www-06c8c0ba0aadf73e8ed9d5c4ace5b52b974c3b50.zip
feat: add php cgi
Diffstat (limited to 'usr')
-rw-r--r--usr/local/etc/lighttpd/conf.d/cgi.conf2
-rw-r--r--usr/local/etc/lighttpd/lighttpd.conf8
2 files changed, 6 insertions, 4 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..cee0470
--- /dev/null
+++ b/usr/local/etc/lighttpd/conf.d/cgi.conf
@@ -0,0 +1,2 @@
+server.modules += ( "mod_cgi" )
+cgi.assign = ( ".php" => "/usr/local/bin/php-cgi" )
diff --git a/usr/local/etc/lighttpd/lighttpd.conf b/usr/local/etc/lighttpd/lighttpd.conf
index 658060a..c165e62 100644
--- a/usr/local/etc/lighttpd/lighttpd.conf
+++ b/usr/local/etc/lighttpd/lighttpd.conf
@@ -1,12 +1,12 @@
-## Note: use kqueue
var.log_root = "/var/log/lighttpd"
include "conf.d/access_log.conf"
include "conf.d/dirlisting.conf"
include "conf.d/mime.conf"
-#include "modules.conf"
-index-file.names += ("index.html")
-server.document-root = "/var/53hor"
+include "conf.d/cgi.conf"
+index-file.names += ("index.php")
+server.document-root = "/var/www"
server.errorlog = log_root + "/error.log"
+server.breakagelog = log_root + "/breakage.log"
server.network-backend = "sendfile"
server.port = 80
server.username = "www"