From 61b5ce20f25c5785e41574998a12c6d06eb05a5e Mon Sep 17 00:00:00 2001 From: Thomas Albers Date: Wed, 8 Mar 2023 23:43:00 +0100 Subject: Restructure build system and directory structures --- server/lighttpd.conf | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 server/lighttpd.conf (limited to 'server/lighttpd.conf') 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", +# ) +# ) +# ) +#} -- cgit v1.2.3