Sylvain Desbureaux | 16bdf24 | 2020-12-07 10:28:24 +0100 | [diff] [blame^] | 1 | server.document-root = "/var/opt/ONAP/html/" |
| 2 | |
| 3 | server.port = 88 |
| 4 | |
| 5 | server.username = "www-data" |
| 6 | server.groupname = "www-data" |
| 7 | server.errorlog = "/var/log/lighttpd/error.log" |
| 8 | accesslog.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 | |
| 23 | dir-listing.activate = "disable" |
| 24 | |
| 25 | alias.url = ( "/logs/" => "/share/logs/" ) |
| 26 | $HTTP["url"] =~ "^/logs/" { |
| 27 | dir-listing.activate = "enable" |
| 28 | } |
| 29 | |
| 30 | mimetype.assign = ( |
| 31 | ".log" => "text/plain", |
| 32 | ".txt" => "text/plain", |
| 33 | ".png" => "image/png", |
| 34 | ".html" => "text/html", |
| 35 | ".xml" => "text/xml" |
| 36 | ) |
| 37 | |
| 38 | static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" ) |
| 39 | index-file.names = ( "index.html" ) |
| 40 | |
| 41 | server.modules += ( "mod_auth" ) |
| 42 | server.modules += ( "mod_alias" ) |
| 43 | server.modules += ( "mod_compress" ) |
| 44 | server.modules += ( "mod_accesslog" ) |
| 45 | auth.debug = 2 |
| 46 | auth.backend = "plain" |
| 47 | auth.backend.plain.userfile = "/etc/lighttpd/authorization" |
| 48 | auth.require = ( "/" => |
| 49 | ( |
| 50 | "method" => "basic", |
| 51 | "realm" => "Password protected area", |
| 52 | "require" => "valid-user" |
| 53 | ) |
| 54 | ) |
| 55 | |
| 56 | compress.cache-dir = "/var/cache/lighttpd/compress/" |
| 57 | compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain") |