Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 166 lines (96 sloc) 3.508 kB
21abc5b @klacke Initial revision
authored
1
2 # conf for yaws
3
4
f0b4192 @klacke ""
authored
5 # first we have a set of globals
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
6 # That apply to all virtual servers
7
8
9 # This is the directory where all logfiles for
10 # all virtual servers will be written
11
12 logdir = %logdir%
13
14 # This the path to a directory where additional
15 # beam code can be placed. The daemon will add this
16 # directory to its search path
f0b4192 @klacke ""
authored
17
18 ebin_dir = %yawsdir%/examples/ebin
443b55e @klacke Build and make fixes
authored
19 ebin_dir = %vardir%/yaws/ebin
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
20
21
22 # This is a directory where application specific .hrl
23 # files can be placed. application specifig .yaws code can
24 # then include these .hrl files
25
f0b4192 @klacke ""
authored
26 include_dir = %yawsdir%/examples/include
27
28
29
92d0daf @klacke ""
authored
30
31
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
32 # This is a debug variable, possible values are http | traffic | false
33 # It is also possible to set the trace (possibly to the tty) while
34 # invoking yaws from the shell as in
35 # yaws -i -T -x (see man yaws)
36
37 trace = false
38
39
40
92d0daf @klacke ""
authored
41
42
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
43 # it is possible to have yaws start additional
44 # application specific code at startup
45 #
46 # runmod = mymodule
47
48
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl proces…
authored
49 # By default yaws will copy the erlang error_log and
50 # end write it to a wrap log called report.log (in the logdir)
51 # this feature can be turned off. This would typically
52 # be the case when yaws runs within another larger app
53
54 copy_error_log = true
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
55
56
bea8261 @klacke added log_wrap_size, configurable wrap size for all logs, fixed a bug…
authored
57 # Logs are wrap logs
58
59 log_wrap_size = 1000000
60
61
2ca4bda @klacke added client IP resolv for access log files
authored
62 # Possibly resolve all hostnames in logfiles so webalizer
63 # can produce the nice geography piechart
64
65 log_resolve_hostname = false
66
67
92d0daf @klacke ""
authored
68
69 # fail completely or not if yaws fails
70 # to bind a listen socket
71 fail_on_bind_err = true
72
73
74
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
75 # If yaws is started as root, it can, once it has opened
76 # all relevant sockets for listening, change the uid to a
77 # user with lower accessrights than root
78
79 # username = nobody
80
81
82 # If HTTP auth is used, it is possible to have a specific
83 # auth log.
84
85 auth_log = true
f0b4192 @klacke ""
authored
86
87
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
88 # When we're running multiple yaws systems on the same
89 # host, we need to give each yaws system an individual
90 # name. Yaws will write a number of runtime files under
91 # /tmp/yaws/${id}
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl proces…
authored
92 # The default value is "default"
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
93
94
95 # id = myname
96
97
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
98 # earlier versions of Yaws picked the first virtual host
99 # in a list of hosts with the same IP/PORT when the Host:
100 # header doesn't match any name on any Host
101 # This is often nice in testing environments but not
102 # acceptable in real live hosting scenarios
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
103
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
104 pick_first_virthost_on_nomatch = true
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
105
106
576139e @klacke added support for fdsrv
authored
107 # All unices are broken since it's not possible to bind to
108 # a privileged port (< 1024) unless uid==0
109 # There is a contrib in jungerl which makes it possible by means
110 # of an external setuid root programm called fdsrv to listen to
111 # to privileged port.
112 # If we use this feature, it requires fdsrv to be properly installed.
113 # Doesn't yet work with SSL.
114
115 use_fdsrv = false
116
117
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
118
119
120 # end then a set of virtual servers
121 # First two virthosted servers on the same IP (0.0.0.0)
122 # in this case, but an explicit IP can be given as well
123
124 <server %host%>
0be3c7e @klacke untabified all of yaws
authored
125 port = %port%
126 listen = 0.0.0.0
127 docroot = %docroot%
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
128 </server>
f0b4192 @klacke ""
authored
129
130 <server localhost>
0be3c7e @klacke untabified all of yaws
authored
131 port = %port%
132 listen = 0.0.0.0
133 docroot = /tmp
134 dir_listings = true
135 dav = true
136 <auth>
137 realm = foobar
138 dir = /
139 user = foo:bar
140 user = baz:bar
141 </auth>
f0b4192 @klacke ""
authored
142 </server>
143
144
145
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
146 # And then an ssl server
147
148 <server %host%>
0be3c7e @klacke untabified all of yaws
authored
149 port = %sslport%
150 docroot = /tmp
151 listen = 0.0.0.0
152 dir_listings = true
153 <ssl>
154 keyfile = %certdir%/yaws-key.pem
155 certfile = %certdir%/yaws-cert.pem
156 </ssl>
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
157 </server>
0be3c7e @klacke untabified all of yaws
authored
158
159
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
160
161
162
163
164
21abc5b @klacke Initial revision
authored
165
Something went wrong with that request. Please try again.