Project

General

Profile

Bug #3093 » lighttpd.conf

Config file with some parts removed - stenvaag, 2021-08-11 14:16

 
1
config {
2
    var.PID                        = 9416
3
    var.CWD                        = "/home/tor/src/lighttpd-1.4.59/src"
4
    server.dir-listing             = "disable"
5
    debug.log-request-header       = "enable"
6
    debug.log-response-header      = "enable"
7
    debug.log-request-handling     = "enable"
8
    server.document-root           = "/home/tor/src/web"
9
    server.upload-dirs             = ("/var/cache/lighttpd/uploads")
10
    server.errorlog                = "/var/log/lighttpd/error.log"
11
    server.pid-file                = "/var/run/lighttpd.pid"
12
    server.username                = "www-data"
13
    server.groupname               = "www-data"
14
    server.port                    = 80
15
    index-file.names               = ("index.php", "index.html", "index.lighttpd.html")
16
    url.access-deny                = ("~", ".inc")
17
    static-file.exclude-extensions = (".php", ".pl", ".fcgi")
18
    deflate.cache-dir              = "/var/cache/lighttpd/compress/"
19
    deflate.mimetypes              = ("application/javascript", "text/css", "text/html", "text/plain")
20
    server.max-fds                 = 2048
21
    server.max-keep-alive-requests = 16
22
    server.max-keep-alive-idle     = 4
23
    server.max-read-idle           = 60
24
    server.max-write-idle          = 360
25
    server.event-handler           = "linux-sysepoll"
26
    server.network-backend         = "linux-sendfile"
27
    server.stat-cache-engine       = "fam"
28
    dir-listing.encoding           = "utf-8"
29
    status.statistics-url          = "/server-statistics"
30
    simple-vhost.default-host      = "gw.agromatic.no"
31
    simple-vhost.server-root       = "/var/www/servers/"
32
    simple-vhost.document-root     = "/"
33
    server.modules                 = (
34
        "mod_expire",
35
        "mod_access",
36
        "mod_alias",
37
        "mod_deflate",
38
        "mod_openssl",
39
        "mod_redirect",
40
        "mod_fastcgi",
41
        "mod_status",
42
        "mod_expire",
43
        "mod_fastcgi",
44
        "mod_rewrite",
45
        "mod_simple_vhost",
46
        "mod_openssl",
47
        # 13
48
    )
49

    
50

    
51
    $HTTP["remoteip"] == "10.0.0.0/8" {
52
        # block 1
53
        status.status-url = "/server-status"
54
        status.config-url = "/server-config"
55

    
56
    } # end of $HTTP["remoteip"] == "10.0.0.0/8"
57

    
58
    $HTTP["host"] =~ "^gollum(\.agromatic\.no)?$" {
59
        # block 3
60
        fastcgi.debug  = 3
61
        fastcgi.server = (
62
            "/tstwst"  => (
63
                (
64
                    "host"              => "10.4.1.38",
65
                    "port"              => 3061,
66
                    "check-local"       => "disable",
67
                    "allow-x-send-file" => "enable",
68
                    "docroot"           => "/",
69
                    # 5
70
                ),
71
            ),
72
            "/maps"    => (
73
                (
74
                    "socket"            => "/tmp/amfcgid.socket",
75
                    "bin-path"          => "/home/tor/src/web/wst/ws_helper/lisens/obj/ammapserv",
76
                    "max-procs"         => 1,
77
                    "check-local"       => "disable",
78
                    "allow-x-send-file" => "enable",
79
                    # 5
80
                    "docroot"           => "/",
81
                    # 6
82
                ),
83
            ),
84
            # 4
85
        )
86

    
87
    } # end of $HTTP["host"] =~ "^gollum(\.agromatic\.no)?$"
88

    
89
    $HTTP["scheme"] == "https" {
90
        # block 6
91
        simple-vhost.server-root = "/var/www/servers.ssl/"
92

    
93
    } # end of $HTTP["scheme"] == "https"
94

    
95
    $SERVER["socket"] == "0.0.0.0:443" {
96
        # block 7
97
        ssl.engine               = "enable"
98
        ssl.pemfile              = "/etc/lighttpd/ssl/agromatic.no/combined.pem"
99
        ssl.ca-file              = "/etc/lighttpd/ssl/agromatic.no/chain.pem"
100
        ssl.dh-file              = "/etc/lighttpd/ssl/dh2048.pem"
101
        ssl.ec-curve             = "secp384r1"
102
        ssl.honor-cipher-order   = "enable"
103
        ssl.cipher-list          = "EECDH+AESGCM:EDH+AESGCM:AES128+EECDH:AES128+EDH"
104
        ssl.openssl.ssl-conf-cmd = (
105
            "Protocol" => "-TLSv1.1, -TLSv1, -SSLv3",
106
        )
107

    
108
    } # end of $SERVER["socket"] == "0.0.0.0:443"
109
}
(2-2/2)