forked from Fiedzia/Fang-of-Mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf
56 lines (40 loc) · 1.35 KB
/
lighttpd.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
53
54
55
56
## Lighttpd Configuration File ##
# Default Document Root
# This is the site that the server will revert to incase of an unknown Virtual Host
server.document-root = "/opt/fangofmongo"
#server.document-root = "/opt"
# Listening Port
server.port = 8001
# Lighttpd User and Group
#server.username = "www"
#server.groupname = "www"
# Acceptable Mime types
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
static-file.exclude-extensions = (".fcgi", ".php", ".rb", "~", ".inc")
index-file.names = ("index.py","index.html")
server.modules = ( "mod_access",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_auth")
fastcgi.server = ( "/site" => # URL
( "main" => #
(
# "host" => "127.0.0.1", #
# "port" => 3033, #
"socket" => "/tmp/mysite.sock", #
"check-local" => "disable", #
)
)
)
url.rewrite = (
# "/fangofmongo/" => "/site/fangofmongo/$1",
"^(/media.*)$" => "$1",
"^/favicon\.ico$" => "/media/favicon.ico",
"^(/.*)$" => "/site$1",
)