-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlighttpd.docker.conf
More file actions
59 lines (42 loc) · 1.64 KB
/
Copy pathlighttpd.docker.conf
File metadata and controls
59 lines (42 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
var.basedir = "/var/www/localhost"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
server.port = 3000
server.modules = (
"mod_rewrite",
"mod_access",
"mod_accesslog",
"mod_alias",
)
#include "mime-types.conf"
# treat document root as equivalent to the news directory for news fetches
# redirect requests for /news.* to the /news/news.* files
url.rewrite-once = (
"^/news\.(atom\.xml|su3)$" => "/news/news.$1",
)
mimetype.assign += ( ".su3" => "application/octet-stream",
".xml" => "text/xml",
".html" => "text/html",
".txt" => "text/plain", )
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = var.basedir + "/htdocs"
server.pid-file = "/run/lighttpd/lighttpd.pid"
server.errorlog = var.logdir + "/error.log"
server.indexfiles = ("index.php", "index.html",
"index.htm", "default.htm")
server.follow-symlink = "enable"
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
accesslog.filename = var.logdir + "/access.log"
dir-listing.activate = "enable"
url.access-deny = ("~", ".inc")
url.rewrite-repeat = (
"^/news/news.atom.xml\?lang=([a-z]+(_[A-Za-z]+)?)" => "/news/news_$1.atom.xml",
"^/news/news.su3\?lang=([a-z]+(_[A-Za-z]+)?)" => "/news/news_$1.su3",
)
url.rewrite-repeat-if-not-file = (
"^/news/news_([a-z]+)_[A-Za-z]+.atom.xml" => "/news/news_$1.atom.xml",
"^/news/news_([a-z]+)_[A-Za-z]+.su3" => "/news/news_$1.su3",
"^/news/news_[a-z]+.atom.xml" => "/news/news.atom.xml",
"^/news/news_[a-z]+.su3" => "/news/news.su3",
)