summaryrefslogtreecommitdiff
path: root/server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf')
-rw-r--r--server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf95
1 files changed, 95 insertions, 0 deletions
diff --git a/server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf b/server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf
new file mode 100644
index 0000000..b575a2f
--- /dev/null
+++ b/server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf
@@ -0,0 +1,95 @@
+# This is a minimal example config
+# See /usr/share/doc/lighttpd
+# and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
+
+server.bind = "0.0.0.0"
+server.port = 80
+server.username = "_lighttpd"
+server.groupname = "_lighttpd"
+server.document-root = "/srv/http/the-brannons.com"
+server.errorlog = "/var/log/lighttpd/error.log"
+server.modules = (
+ "mod_access",
+ "mod_simple_vhost",
+ "mod_accesslog",
+ "mod_cgi",
+ "mod_fastcgi",
+ "mod_proxy",
+ "mod_rewrite",
+ "mod_openssl"
+)
+server.breakagelog = "/var/log/lighttpd/breakage.log"
+
+$SERVER["socket"] == "[::]:80" {
+}
+
+ssl.pemfile = "/etc/ssl/acme/the-brannons.com/fullchain"
+ssl.privkey = "/etc/ssl/acme/the-brannons.com/privkey"
+$SERVER["socket"] == ":443" {
+ ssl.engine = "enable"
+}
+$SERVER["socket"] == "[::]:443" {
+ ssl.engine = "enable"
+}
+
+dir-listing.activate = "enable"
+index-file.names = ( "index.html" )
+include "mime.conf"
+
+accesslog.filename = "/var/log/lighttpd/access.log"
+
+server.modules += ( "mod_magnet" )
+$HTTP["url"] =~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
+magnet.attract-raw-url-to = ( "/etc/lighttpd/handle-acme.lua" )
+}
+
+simple-vhost.server-root = "/srv/http/"
+simple-vhost.default-host = "default"
+
+$HTTP["url"] =~ "^/cgi-bin" {
+ cgi.assign = ( "" => "" )
+ dir-listing.activate = "disable"
+}
+
+$HTTP["host"] == "blvuug.org" {
+ $HTTP["url"] =~ "^/salmonella" {
+proxy.server = (
+ "" => (
+"blvuug.org" =>
+("host" => "192.168.122.83", "port" => 80)))
+}
+$HTTP["url"] !~ "^/salmonella" {
+proxy.server = (
+ "" => (
+"blvuug.org" =>
+("host" => "10.4.21.2", "port" => 5001)))
+}
+}
+$HTTP["host"] == "salmonella-freebsd-x86-64.call-cc.org" {
+ $HTTP["url"] =~ "^/salmonella" {
+proxy.server = (
+ "" => (
+"salmonella-freebsd-x86-64.call-cc.org" =>
+("host" => "192.168.122.83", "port" => 80)))
+}
+$HTTP["url"] !~ "^/salmonella" {
+ url.access-deny = ("")
+}
+}
+$HTTP["host"] == "bitwarden.number89.net" {
+proxy.server = (
+ "" => (
+"bitwarden.number89.net" =>
+("host" => "10.4.21.3", "port" => 5002)))
+}
+
+cgi.x-sendfile = "enable"
+
+fastcgi.server = ("/git" =>
+(("socket" => "/run/gitolite/gitolite.sock",
+"docroot" => "/var/lib/gitolite/web")))
+
+$HTTP["url"] =~ "^/cgit" {
+ server.indexfiles = ("cgit.cgi")
+ cgi.assign = ("cgit.cgi" => "")
+}