-
Notifications
You must be signed in to change notification settings - Fork 22
/
sample.conf
57 lines (42 loc) · 1.39 KB
/
sample.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
# frontend reverse proxy sample config file
# which host to listen (default ANY)
host 0.0.0.0
# local port to listen
port 80
# user and chroot directory
user wwwrun
chroot /var/run/
logfile /var/log/frontend
# valid providers are file, mmap or aio
# 'file' is default, 'mmap' is fastest, 'aio' experimental
logprovider file
# Now the mappings ...
#
#
# #port specifier is not required for port 80
#
# The URI must match what a potential "Location:" redirect reply from one of
# the backends also would contain as URI (without sub paths)
# and it must be resolvable by DNS if its not an IP address. Otherwise redirects
# do not work.
#
# '#' comments in the same line as the 'map' command are not allowed as it would
# clash with port specifier
#
map /foo http://127.0.0.1#8080/
# multiple assignments for the same /path are possile
# (load balancing)
map /foo http://127.0.0.2#8080/
#...
# The path component is always required, even if its just /
map /bar http://bar.example.com/
# What do we tell the outside world where all the Locations:
# are? (subpath components will be translated back and forth by frontend and the above
# path mappings will be appended automatically)
#
# No trailing slashes allowed (unlike in "map").
#
# In this example a 'Location:http://127.0.0.1:8080/' from the first backend would be
# translated to 'Location:http://outside.example.com/foo/'
#
location http://outside.example.com