Project

General

Profile

Bug #2889 ยป lighttpd.conf

pidloop, 2018-05-21 22:33

 
1
debug.log-request-handling = "disable"
2
debug.log-request-header = "disable"
3
debug.log-response-header = "disable"
4
debug.log-condition-handling = "disable"
5

    
6
server.document-root = "/root/MMTAO/web/www"
7

    
8
# 64 Mbyte ... nice limit
9
server.max-request-size = 65000
10

    
11
## bind to port (default: 80)
12
server.port                 = 8080
13

    
14
server.use-ipv6 = "disable"
15

    
16
# bind to localhost (default: all interfaces)
17
# server.bind                = "localhost"
18

    
19
server.errorlog            = "/tmp/lighttpd/logs/lighttpd.error.log"
20
server.breakagelog         = "/tmp/lighttpd/logs/lighttpd.breakage.log"
21

    
22
server.dir-listing          = "enable"
23

    
24
server.modules              = (
25
				"mod_accesslog",
26
				"mod_auth",
27
				"mod_cgi",
28
				"mod_expire",
29
				"mod_compress",
30
				"mod_redirect",
31
				"mod_rewrite",
32
				"mod_secdownload",
33
				"mod_setenv",
34
				"mod_simple_vhost",
35
				"mod_ssi",
36
				"mod_status",
37
				"mod_userdir",
38
			        "mod_access"
39
			      )
40

    
41
server.indexfiles           = ( "index.php", "index.html",
42
                                "index.htm", "default.htm" )
43

    
44

    
45
######################## MODULE CONFIG ############################
46

    
47
ssi.extension = ( ".shtml" )
48

    
49
accesslog.filename          = "/tmp/lighttpd/logs/lighttpd.access.log"
50

    
51
mimetype.assign             = ( ".png"  => "image/png",
52
                                ".jpg"  => "image/jpeg",
53
                                ".css"  => "text/css",
54
                                ".js"   => "text/javascript",
55
                                ".jpeg" => "image/jpeg",
56
                                ".gif"  => "image/gif",
57
                                ".html" => "text/html",
58
                                ".htm"  => "text/html",
59
                                ".pdf"  => "application/pdf",
60
                                ".swf"  => "application/x-shockwave-flash",
61
                                ".spl"  => "application/futuresplash",
62
                                ".txt"  => "text/plain",
63
                                ".tar.gz" =>   "application/x-tgz",
64
                                ".tgz"  => "application/x-tgz",
65
                                ".gz"   => "application/x-gzip",
66
				".c"    => "text/plain",
67
				".conf" => "text/plain" )
68

    
69
compress.filetype           = ("text/plain", "text/html", "text/javascript", "text/css")
70

    
71
server.modules += ( "mod_wstunnel" )
72
$HTTP["url"] =~ "^/indi-websocket" {
73
    wstunnel.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "7624" ) ) )
74
    wstunnel.ping-interval = 10
75
    wstunnel.frame-type = "text"
76
    server.stream-request-body  = 2
77
    server.stream-response-body = 2
78
}
79

    
80

    
81
$HTTP["url"] =~ "\.png$" {
82
    expire.url = ( "" => "access 1 minutes" )
83
}
84

    
85

    
86
cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
87
                                ".cgi" => "/usr/bin/perl",
88
				".py"  => "/usr/bin/python" )
89

    
90

    
91
auth.backend                = "htdigest"
92
auth.backend.htdigest.userfile = "/root/MMTAO/web/conf/auth"
93
# add lines to auth with mkauth.pl
94
auth.require                = (
95
				"/" =>
96
				( "method" => "basic",
97
				  "realm" => "MAPS website",
98
				  "require" => "user=mrMAPS"
99
				)
100
                              )
101

    
102
url.access-deny             = ( "~", ".inc")
103

    
104
url.rewrite		    = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
105
				"^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" )
106

    
107
url.rewrite-if-not-file = ( "^(/rewrite/[^?]*)(?:\?(.*))?$" => "/indexfile/rewrite.php?file=$1&$2" )
108

    
109
#cache.cache-dir             = "/home/weigon/wwwroot/cache/"
110

    
111
#### status module
112
status.status-url           = "/server-status"
113
status.config-url           = "/server-config"
114

    
    (1-1/1)