Enable HTTPS for CLI portal
[cli.git] / deployment / http / lighttpd / lighttpd.conf
1 # Copyright 2018 Huawei Technologies Co., Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 server.document-root = "/var/www-data/servers/open-cli/"
16 server.username             = "www-data"
17 server.groupname            = "www-data"
18 server.port                 = 80
19 ssl.engine                  = "enable"
20 ssl.pemfile                 = "/etc/lighttpd/ocomp.pem"
21
22 mimetype.assign = (
23   ".html" => "text/html",
24   ".txt" => "text/plain",
25   ".jpg" => "image/jpeg",
26   ".png" => "image/png"
27 )
28
29 index-file.names = ( "index.html" )
30 dir-listing.activate = "disable"
31
32
33 server.modules = (
34         "mod_access",
35         "mod_proxy",
36         "mod_alias",
37         "mod_compress",
38         "mod_redirect",
39 #       "mod_rewrite",
40 )
41
42 #server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
43 server.errorlog             = "/var/log/lighttpd/error.log"
44 server.pid-file             = "/var/run/lighttpd.pid"
45 #compress.cache-dir          = "/var/cache/lighttpd/compress/"
46 #compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
47
48 # default listening port for IPv6 falls back to the IPv4 port
49 ## Use ipv6 if available
50 #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
51 #include_shell "/usr/share/lighttpd/create-mime.assign.pl"
52 #include_shell "/usr/share/lighttpd/include-conf-enabled.pl"