Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 184 lines (120 sloc) 4.862 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 templa...
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 templa...
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
53608c3 @klacke max number of connections patch by Kinoshita
authored
28 # Set this to an integer value to control
29 # max number of connections from clients into the server
30 max_connections = nolimit
92d0daf @klacke ""
authored
31
0446f2b Added a new configuration parameter called "keepalive_maxuses" which all...
Thomas O'Dowd authored
32 # Normally, yaws does not restrict the number of times a connection is
33 # kept alive using keepalive. Setting this parameter to an integer X
34 # will ensure that connections are closed once they have been used X times.
35 # This can be a useful to guard against long running connections
36 # collecting too much garbage in the erlang VM.
37 keepalive_maxuses = nolimit
38
aa217d8 Added a new configuration parameter to allow the administrator to contro...
Thomas O'Dowd authored
39 # Override the garbage collection option parameters for processes
40 # which handle new connections. Useful for systems which expect long lived
41 # connections which handle a lot of data. The default value is erlangs
42 # default. Valid options are {fullsweep_after, X} and/or {min_heap_size, Y} where
43 # X and Y are integers. See erlangs erlang:spawn_opt/4 function for more details.
44 # The value type is a quoted string containing an erlang proplist
45 process_options = "[]"
92d0daf @klacke ""
authored
46
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
47 # This is a debug variable, possible values are http | traffic | false
48 # It is also possible to set the trace (possibly to the tty) while
49 # invoking yaws from the shell as in
50 # yaws -i -T -x (see man yaws)
51
52 trace = false
53
d4fec79 @klacke added support for OTP new ssl implementation
authored
54 # Enable this if we want to use the old OTP ssl implementation
55 # OTP R13B03 is known to work with this flag set to false (default)
56 use_old_ssl = false
92d0daf @klacke ""
authored
57
58
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
59 # it is possible to have yaws start additional
60 # application specific code at startup
61 #
62 # runmod = mymodule
63
64
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
authored
65 # By default yaws will copy the erlang error_log and
66 # end write it to a wrap log called report.log (in the logdir)
67 # this feature can be turned off. This would typically
68 # be the case when yaws runs within another larger app
69
70 copy_error_log = true
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
71
72
bea8261 @klacke added log_wrap_size, configurable wrap size for all logs, fixed a bug in...
authored
73 # Logs are wrap logs
74
75 log_wrap_size = 1000000
76
77
2ca4bda @klacke added client IP resolv for access log files
authored
78 # Possibly resolve all hostnames in logfiles so webalizer
79 # can produce the nice geography piechart
80
81 log_resolve_hostname = false
82
83
92d0daf @klacke ""
authored
84
85 # fail completely or not if yaws fails
86 # to bind a listen socket
87 fail_on_bind_err = true
88
89
90
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
91
92 # If HTTP auth is used, it is possible to have a specific
93 # auth log.
94
95 auth_log = true
f0b4192 @klacke ""
authored
96
97
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
98 # When we're running multiple yaws systems on the same
99 # host, we need to give each yaws system an individual
100 # name. Yaws will write a number of runtime files under
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
101 # ${HOME}/.yaws/yaws/${id}
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
authored
102 # The default value is "default"
d4fec79 @klacke added support for OTP new ssl implementation
authored
103 # If we're not planning to run multiple webservers on the
104 # same host it's mych better to leave this value unset since
105 # then all the ctl function (--stop et.el) work without having
106 # to supply the id.
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
107
108 # id = myname
109
110
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
111 # earlier versions of Yaws picked the first virtual host
112 # in a list of hosts with the same IP/PORT when the Host:
113 # header doesn't match any name on any Host
114 # This is often nice in testing environments but not
115 # acceptable in real live hosting scenarios
d4fec79 @klacke added support for OTP new ssl implementation
authored
116 # think http://suckmydick.bigcompany.com
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
117
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
118 pick_first_virthost_on_nomatch = true
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
119
120
576139e @klacke added support for fdsrv
authored
121 # All unices are broken since it's not possible to bind to
122 # a privileged port (< 1024) unless uid==0
123 # There is a contrib in jungerl which makes it possible by means
124 # of an external setuid root programm called fdsrv to listen to
316bf6d @klacke small fixes
authored
125 # a privileged port.
576139e @klacke added support for fdsrv
authored
126 # If we use this feature, it requires fdsrv to be properly installed.
127 # Doesn't yet work with SSL.
d4fec79 @klacke added support for OTP new ssl implementation
authored
128 # Read http://yaws.hyber.org/privbind.yaws for more info and a better
129 # solution than fd_srv
130
576139e @klacke added support for fdsrv
authored
131 use_fdsrv = false
132
133
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
134
135
316bf6d @klacke small fixes
authored
136 # and then a set of virtual servers
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
137 # First two virthosted servers on the same IP (0.0.0.0)
138 # in this case, but an explicit IP can be given as well
139
140 <server %host%>
0be3c7e @klacke untabified all of yaws
authored
141 port = %port%
142 listen = 0.0.0.0
143 docroot = %docroot%
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cgi.y...
authored
144 appmods = <cgi-bin, yaws_appmod_cgi>
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
145 </server>
f0b4192 @klacke ""
authored
146
147 <server localhost>
0be3c7e @klacke untabified all of yaws
authored
148 port = %port%
149 listen = 0.0.0.0
150 docroot = /tmp
151 dir_listings = true
a42cf46 @oliv3 yaws_ctl and conf template
oliv3 authored
152 statistics = true
0be3c7e @klacke untabified all of yaws
authored
153 <auth>
154 realm = foobar
155 dir = /
156 user = foo:bar
157 user = baz:bar
158 </auth>
f0b4192 @klacke ""
authored
159 </server>
160
161
162
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
163 # And then an ssl server
164
165 <server %host%>
0be3c7e @klacke untabified all of yaws
authored
166 port = %sslport%
167 docroot = /tmp
168 listen = 0.0.0.0
169 dir_listings = true
170 <ssl>
171 keyfile = %certdir%/yaws-key.pem
172 certfile = %certdir%/yaws-cert.pem
d4fec79 @klacke added support for OTP new ssl implementation
authored
173 depth = 0
0be3c7e @klacke untabified all of yaws
authored
174 </ssl>
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
175 </server>
0be3c7e @klacke untabified all of yaws
authored
176
177
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
178
179
180
181
182
21abc5b @klacke Initial revision
authored
183
Something went wrong with that request. Please try again.