summaryrefslogtreecommitdiff
path: root/server/lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'server/lighttpd.conf')
-rw-r--r--server/lighttpd.conf62
1 files changed, 62 insertions, 0 deletions
diff --git a/server/lighttpd.conf b/server/lighttpd.conf
new file mode 100644
index 0000000..181f2c6
--- /dev/null
+++ b/server/lighttpd.conf
@@ -0,0 +1,62 @@
+var.log_root = env.HOME + "/.local/share/lighttpd"
+var.server_root = env.PWD + "/site"
+var.state_dir = "/tmp"
+var.home_dir = "/tmp"
+var.conf_dir = env.PWD + "/server"
+
+var.cache_dir = env.HOME + "/.cache/lighttpd"
+var.socket_dir = home_dir + "/sockets"
+
+server.modules = (
+ "mod_access",
+ "mod_fastcgi",
+ "mod_scgi",
+ "mod_accesslog"
+)
+
+fastcgi.debug = 1
+fastcgi.server = (
+ ".cgi" => ((
+ "host" => "127.0.0.1",
+ "port" => "9000",
+ "check-local" => "disable"
+ )))
+
+server.bind = "0.0.0.0"
+server.port = 8080
+server.document-root = server_root
+server.pid-file = state_dir + "/lighttpd.pid"
+
+server.errorlog = log_root + "/error.log"
+accesslog.filename = log_root + "/access.log"
+
+server.max-fds = 1024
+
+index-file.names += (
+ "index.html"
+)
+
+url.access-deny = ( "~", ".inc" )
+
+static-file.exclude-extensions = ( ".cgi", ".fcgi", ".scgi" )
+
+include conf_dir + "/mime.conf"
+
+dir-listing.exclude = ( "~$" )
+dir-listing.encoding = "UTF-8"
+
+## This time we launch the rails application via scgi_rails externally.
+##
+#$HTTP["host"] == "rails2.example.com" {
+# server.document-root = server_root + "/rails/someapp/public"
+# server.error-handler-404 = "/dispatch.scgi"
+# scgi.server = ( ".scgi" =>
+# ( "scgi-tcp" =>
+# (
+# "host" => "127.0.0.1",
+# "port" => 9998,
+# "check-local" => "disable",
+# )
+# )
+# )
+#}