-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlighttpd.docker.conf
52 lines (36 loc) · 1.42 KB
/
lighttpd.docker.conf
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
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"
)
#include "mime-types.conf"
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",
)