blob: 6c781a240b7452eab462526d31fe7c96cb570e8b [file] [log] [blame]
Sylvain Desbureaux16bdf242020-12-07 10:28:24 +01001server.document-root = "/var/opt/ONAP/html/"
2
3server.port = 88
4
5server.username = "www-data"
6server.groupname = "www-data"
7server.errorlog = "/var/log/lighttpd/error.log"
8accesslog.filename = "/var/log/lighttpd/access.log"
9
10
11$SERVER["socket"] == ":443" {
12 ssl.engine = "enable"
13 ssl.pemfile = "/etc/lighttpd/ssl/onap-robot.onap.pem"
14 # ssl.ca-file = "/etc/lighttpd/ssl/CA_issuing.crt"
15 server.name = "robot-onap.onap.org"
16 #server.document-root = "/var/opt/ONAP/html/"
17 #server.errorlog = "/var/log/lighttpd/robot_onap.onap.org.error.log"
18 #accesslog.filename = "/var/log/lighttpd/robot_onap.onap.org.access.log"
19}
20
21
22
23dir-listing.activate = "disable"
24
25alias.url = ( "/logs/" => "/share/logs/" )
26$HTTP["url"] =~ "^/logs/" {
27 dir-listing.activate = "enable"
28}
29
30mimetype.assign = (
31 ".log" => "text/plain",
32 ".txt" => "text/plain",
33 ".png" => "image/png",
34 ".html" => "text/html",
35 ".xml" => "text/xml"
36)
37
38static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )
39index-file.names = ( "index.html" )
40
41server.modules += ( "mod_auth" )
42server.modules += ( "mod_alias" )
43server.modules += ( "mod_compress" )
44server.modules += ( "mod_accesslog" )
45auth.debug = 2
46auth.backend = "plain"
47auth.backend.plain.userfile = "/etc/lighttpd/authorization"
48auth.require = ( "/" =>
49(
50"method" => "basic",
51"realm" => "Password protected area",
52"require" => "valid-user"
53)
54)
55
56compress.cache-dir = "/var/cache/lighttpd/compress/"
57compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain")