summaryrefslogtreecommitdiff
path: root/server-config/www.the-brannons.com/etc/lighttpd/lighttpd.conf
blob: b575a2f7d6c4050b006e49738511dfaf6e0b56c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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" => "")
}