From b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd Mon Sep 17 00:00:00 2001 From: Kirmy Date: Thu, 9 Dec 2021 13:09:09 +0100 Subject: Replaced darkhttpd with lighttpd --- lighttpd.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lighttpd.conf (limited to 'lighttpd.conf') diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..da72bf9 --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,20 @@ +# Minimal config by Kirmy34 + +include "/etc/lighttpd/mime-types.conf" + +server.port = 8080 + +server.username = "lighttpd" +server.groupname = "lighttpd" + +server.document-root = "/www" +server.pid-file = "/run/lighttpd.pid" + +server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") + +server.follow-symlink = "enable" + +static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") + +url.access-deny = ("~", ".inc") + -- cgit v1.2.3 From cd75da69f9e57c3fe0f63c3ed6def0577d75a47c Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 20 Mar 2022 21:46:36 +0100 Subject: Alias subfolder hosting --- lighttpd.conf | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'lighttpd.conf') diff --git a/lighttpd.conf b/lighttpd.conf index da72bf9..04b0bed 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -1,20 +1,10 @@ -# Minimal config by Kirmy34 - include "/etc/lighttpd/mime-types.conf" -server.port = 8080 - -server.username = "lighttpd" -server.groupname = "lighttpd" - -server.document-root = "/www" -server.pid-file = "/run/lighttpd.pid" - -server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") - +server.port = env.PORT +server.modules = ( "mod_alias" ) +server.username = env.USER +server.groupname = env.GROUP +server.document-root = "/www" +alias.url = ( env.SUBFOLDER => "/www" ) +server.indexfiles = ("index.html") server.follow-symlink = "enable" - -static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") - -url.access-deny = ("~", ".inc") - -- cgit v1.2.3 From 049f85221e945b90bf87d21afe4d306839d65740 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 10 Apr 2022 11:55:11 +0200 Subject: Simplify the container starting process to allow it to run with a unprivileged user --- lighttpd.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lighttpd.conf') diff --git a/lighttpd.conf b/lighttpd.conf index 04b0bed..32e14da 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -2,8 +2,8 @@ include "/etc/lighttpd/mime-types.conf" server.port = env.PORT server.modules = ( "mod_alias" ) -server.username = env.USER -server.groupname = env.GROUP +server.username = "lighttpd" +server.groupname = "lighttpd" server.document-root = "/www" alias.url = ( env.SUBFOLDER => "/www" ) server.indexfiles = ("index.html") -- cgit v1.2.3