aboutsummaryrefslogtreecommitdiff
path: root/web/lighttpd.conf
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-02-02 18:44:11 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-02-02 18:44:11 +0100
commiteda6326d35e65098e08518a2c6b499709f8ee67e (patch)
tree85cbb9fe5d882737bf9480b50ccbf0889b0e7812 /web/lighttpd.conf
parent6f5f9793da3b40c97e0826c4418a99f71fa31426 (diff)
downloadturris-lcd-example-eda6326d35e65098e08518a2c6b499709f8ee67e.tar.gz
turris-lcd-example-eda6326d35e65098e08518a2c6b499709f8ee67e.tar.bz2
turris-lcd-example-eda6326d35e65098e08518a2c6b499709f8ee67e.zip
Add web
Diffstat (limited to 'web/lighttpd.conf')
-rw-r--r--web/lighttpd.conf41
1 files changed, 41 insertions, 0 deletions
diff --git a/web/lighttpd.conf b/web/lighttpd.conf
new file mode 100644
index 0000000..65fa580
--- /dev/null
+++ b/web/lighttpd.conf
@@ -0,0 +1,41 @@
+server.modules = (
+ "mod_cgi"
+)
+
+server.document-root = "/www2"
+server.upload-dirs = ( "/tmp" )
+server.errorlog = "/var/log/lighttpd/error.log"
+server.pid-file = "/var/run/lighttpd.pid"
+#server.username = "http"
+#server.groupname = "www-data"
+
+index-file.names = ( "index.php", "index.html",
+ "index.htm", "default.htm",
+ )
+
+static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".py" )
+
+### Options that are useful but not always necessary:
+#server.chroot = "/"
+#server.port = 81
+#server.bind = "localhost"
+#server.tag = "lighttpd"
+#server.errorlog-use-syslog = "enable"
+#server.network-backend = "writev"
+
+# listen on IPv6
+$SERVER["socket"] == "[::]:80" { }
+
+### Use IPv6 if available
+#include_shell "/usr/share/lighttpd/use-ipv6.pl"
+
+#dir-listing.encoding = "utf-8"
+#server.dir-listing = "enable"
+
+include "/etc/lighttpd/mime.conf"
+#include "/etc/lighttpd/modules.d/*.load"
+#include "/etc/lighttpd/conf.d/*.conf"
+
+cgi.assign += (
+ ".sh" => "/bin/sh"
+)