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
|
null = Filter(name="/usr/local/lib/mongrel2/filters/null.so", settings={
"extensions": ["*.html", "*.txt"],
"min_size": 1000
})
main = Server(
uuid="f400bf85-4538-4f7a-8908-67e313d515c2",
access_log="/logs/access.log",
error_log="/logs/error.log",
chroot="./",
default_host="localhost",
name="test",
pid_file="/run/mongrel2.pid",
port=6767,
hosts = [
Host(name="localhost", routes={
'/tests/': Dir(base='tests/', index_file='index.html',
default_ctype='text/plain')
'/nulltest/': Proxy(addr='127.0.0.1', port=8080)
})
]
filters = [null]
)
servers = [main]
|