aboutsummaryrefslogtreecommitdiffstats
path: root/resources/config/lighttpd/lighttpd.conf
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-08-09 15:52:42 -0400
committerDR695H <dr695h@att.com>2019-09-27 16:54:36 -0400
commitbd1c1916d906a894dbc0c1fd1245bf3d4735371b (patch)
tree6e2f3de6ed478f7d92510b6519d9e992fadf93dd /resources/config/lighttpd/lighttpd.conf
parentb871d7ffd39eef96df17810eadf5c79ff1656526 (diff)
splitting out light httpd
Issue-ID: TEST-192 Change-Id: I76d238d743a3653b332fef37fd50520d79bcf314 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'resources/config/lighttpd/lighttpd.conf')
-rw-r--r--resources/config/lighttpd/lighttpd.conf41
1 files changed, 41 insertions, 0 deletions
diff --git a/resources/config/lighttpd/lighttpd.conf b/resources/config/lighttpd/lighttpd.conf
new file mode 100644
index 0000000..03d2340
--- /dev/null
+++ b/resources/config/lighttpd/lighttpd.conf
@@ -0,0 +1,41 @@
+server.document-root = "/var/opt/ONAP/html/"
+
+server.port = 99
+
+server.username = "lighttpd"
+server.groupname = "lighttpd"
+
+dir-listing.activate = "disable"
+
+alias.url = ( "/logs/" => "/share/logs/" )
+$HTTP["url"] =~ "^/logs/" {
+ dir-listing.activate = "enable"
+}
+
+mimetype.assign = (
+ ".log" => "text/plain",
+ ".txt" => "text/plain",
+ ".png" => "image/png",
+ ".html" => "text/html",
+ ".xml" => "text/xml"
+)
+
+static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )
+index-file.names = ( "index.html" )
+
+server.modules += ( "mod_auth" )
+server.modules += ( "mod_alias" )
+server.modules += ( "mod_compress" )
+auth.debug = 2
+auth.backend = "plain"
+auth.backend.plain.userfile = "/etc/lighttpd/authorization"
+auth.require = ( "/" =>
+(
+"method" => "basic",
+"realm" => "Password protected area",
+"require" => "valid-user"
+)
+)
+
+# compress.cache-dir = "/var/lib/lighttpd/cache/compress"
+compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain")