-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_config
More file actions
38 lines (33 loc) · 863 Bytes
/
sample_config
File metadata and controls
38 lines (33 loc) · 863 Bytes
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
# The dispatch mechanism does substring matching on the locations for the
# handlers, in the order they appear in the config file, and dispatches to the
# first one that matches.
#
# For example:
# * /static/foo matches /static/ and will dispatch to the first static
# file handler
# * /foo will match "/" and will dispatch to the 404Handler.
#
# The general syntax of a handler stanza is:
#
# handler <handler class name> {
# location <url prefix>;
# <other configs>
# }
#
# The <other configs> will depend on the particular handler class, and will be
# interpreted by the handler's Initialize() method.
port 8080;
handler StaticFileHandler {
location /static/;
document_root /foo/bar;
}
handler StaticFileHandler {
location /static2/;
document_root /a/b/c;
}
handler EchoHandler {
location /echo;
}
handler Http404Handler {
location /;
}