Brian Freeman | f6032df | 2019-02-18 09:59:12 -0500 | [diff] [blame^] | 1 | server.document-root = "/var/opt/ONAP/html/" |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 2 | |
| 3 | server.port = 88 |
| 4 | |
| 5 | server.username = "www-data" |
| 6 | server.groupname = "www-data" |
| 7 | |
| 8 | dir-listing.activate = "disable" |
| 9 | |
Jerry Flood | d750315 | 2017-10-09 16:33:00 -0400 | [diff] [blame] | 10 | alias.url = ( "/logs/" => "/share/logs/" ) |
| 11 | $HTTP["url"] =~ "^/logs/" { |
| 12 | dir-listing.activate = "enable" |
| 13 | } |
| 14 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 15 | mimetype.assign = ( |
Gary Wu | f240d64 | 2017-10-19 13:46:27 -0700 | [diff] [blame] | 16 | ".log" => "text/plain", |
| 17 | ".txt" => "text/plain", |
Gary Wu | 351a772 | 2018-11-01 09:39:16 -0700 | [diff] [blame] | 18 | ".png" => "image/png", |
Gary Wu | f240d64 | 2017-10-19 13:46:27 -0700 | [diff] [blame] | 19 | ".html" => "text/html", |
| 20 | ".xml" => "text/xml" |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" ) |
| 24 | index-file.names = ( "index.html" ) |
| 25 | |
Jerry Flood | 775f59f | 2017-04-01 06:55:19 -0400 | [diff] [blame] | 26 | server.modules += ( "mod_auth" ) |
Jerry Flood | d750315 | 2017-10-09 16:33:00 -0400 | [diff] [blame] | 27 | server.modules += ( "mod_alias" ) |
Gary Wu | 23920af | 2018-10-30 15:16:11 -0700 | [diff] [blame] | 28 | server.modules += ( "mod_compress" ) |
Jerry Flood | 775f59f | 2017-04-01 06:55:19 -0400 | [diff] [blame] | 29 | auth.debug = 2 |
| 30 | auth.backend = "plain" |
| 31 | auth.backend.plain.userfile = "/etc/lighttpd/authorization" |
| 32 | auth.require = ( "/" => |
| 33 | ( |
| 34 | "method" => "basic", |
| 35 | "realm" => "Password protected area", |
| 36 | "require" => "valid-user" |
| 37 | ) |
| 38 | ) |
Gary Wu | 23920af | 2018-10-30 15:16:11 -0700 | [diff] [blame] | 39 | |
| 40 | compress.cache-dir = "/var/cache/lighttpd/compress/" |
| 41 | compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain") |