Skip to content
Newer
Older
100644 160 lines (110 sloc) 3.87 KB
262cac7 @capflam Add the revproxy testsuite
capflam authored Feb 24, 2012
1
2
3 logdir = ./logs
4
5 # This the path to a directory where additional
6 # beam code can be placed. The daemon will add this
7 # directory to its search path
8
9 ebin_dir = %YTOP%/test/ibrowse/ebin
10 include_dir = %YTOP%/test/include
11
12
13
14 # This is a debug variable, possible values are http | traffic | false
15 # It is also possible to set the trace (possibly to the tty) while
16 # invoking yaws from the shell as in
17 # yaws -i -T -x (see man yaws)
18
19 trace = false
20
21
22
23 # it is possible to have yaws start additional
24 # application specific code at startup
25 #
26 # runmod = mymodule
27
28
29 # By default yaws will copy the erlang error_log and
30 # end write it to a wrap log called report.log (in the logdir)
31 # this feature can be turned off. This would typically
32 # be the case when yaws runs within another larger app
33
34 copy_error_log = true
35
36
37 # Logs are wrap logs
38
39 log_wrap_size = 1000000
40
41
42 # Possibly resolve all hostnames in logfiles so webalizer
43 # can produce the nice geography piechart
44
45 log_resolve_hostname = false
46
47
48
49 # fail completely or not if yaws fails
50 # to bind a listen socket
51 fail_on_bind_err = true
52
53
54
55 # If yaws is started as root, it can, once it has opened
56 # all relevant sockets for listening, change the uid to a
57 # user with lower accessrights than root
58
59 # username = nobody
60
61
62 # If HTTP auth is used, it is possible to have a specific
63 # auth log.
64 # Deprecated and ignored. Now, this target must be set in server part
65 #auth_log = true
66
67
68 # When we're running multiple yaws systems on the same
69 # host, we need to give each yaws system an individual
70 # name. Yaws will write a number of runtime files under
71 # /tmp/yaws/${id}
72 # The default value is "default"
73
74
75 # id = myname
76
77
78 # earlier versions of Yaws picked the first virtual host
79 # in a list of hosts with the same IP/PORT when the Host:
80 # header doesn't match any name on any Host
81 # This is often nice in testing environments but not
82 # acceptable in real live hosting scenarios
83
84 pick_first_virthost_on_nomatch = true
85
86
87 # All unices are broken since it's not possible to bind to
88 # a privileged port (< 1024) unless uid==0
89 # There is a contrib in jungerl which makes it possible by means
90 # of an external setuid root programm called fdsrv to listen to
91 # to privileged port.
92 # If we use this feature, it requires fdsrv to be properly installed.
93 # Doesn't yet work with SSL.
94
95 use_fdsrv = false
96
97
98
99
100 # end then a set of virtual servers
101 # First two virthosted servers on the same IP (0.0.0.0)
102 # in this case, but an explicit IP can be given as well
103
104 <server localhost>
105 port = 8000
106 listen = 0.0.0.0
107 listen_backlog = 512
108 deflate = true
109 docroot = %YTOP%/www
110 arg_rewrite_mod = rewritetest
111 revproxy = /revproxy1 http://localhost:8001
112 revproxy = /revproxy2 http://localhost:8002
113 </server>
114
115 <server localhost>
116 port = 8001
117 listen = 0.0.0.0
118 listen_backlog = 512
119 deflate = true
120 partial_post_size = 2048000
9a95602 @capflam Handle non-chunked responses without content-length in yaws_revproxy
capflam authored Jun 11, 2012
121 appmods = posttest streamtest nolengthtest
262cac7 @capflam Add the revproxy testsuite
capflam authored Feb 24, 2012
122 docroot = %YTOP%/test/t4/www1
123 </server>
124
125 <server localhost>
126 port = 8002
127 listen = 0.0.0.0
128 listen_backlog = 512
129 deflate = false
130 docroot = %YTOP%/test/t4/www2
131 </server>
132
133 <server localhost>
134 port = 8003
135 listen = 0.0.0.0
136 listen_backlog = 512
137 deflate = false
138 fwdproxy = true
139 arg_rewrite_mod = rewritetest
140 docroot = %YTOP%/www
141 </server>
142
b10e492 @vinoski handle large non-chunked content in yaws_revproxy
vinoski authored Jun 10, 2012
143 <server localhost>
144 port = 8004
145 listen = 0.0.0.0
146 listen_backlog = 512
147 docroot = %YTOP%/www
148 revproxy = /revproxy http://localhost:8002
149 </server>
cccc578 @vinoski add reverse proxy intercept module capability
vinoski authored Jun 17, 2012
150
151 <server localhost>
152 port = 8005
153 listen = 0.0.0.0
154 listen_backlog = 512
155 docroot = %YTOP%/www
156 revproxy = /revproxy1 http://localhost:8002 intercept_mod intercept1
157 revproxy = /revproxy2 http://localhost:8002 intercept_mod intercept2
158 revproxy = /revproxy3 http://localhost:8002 intercept_mod intercept3
159 </server>
Something went wrong with that request. Please try again.