Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 151 lines (125 sloc) 5.163 kb
21abc5b Claes Wikstrom Initial revision
klacke authored
1
2 # conf for yaws
3
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
4 # First we have a set of globals that apply to all virtual servers
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
5
6 # This is the directory where all logfiles for
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
7 # all virtual servers will be written.
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
8 logdir = %logdir%
9
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
10 # These are the paths to directories where additional
11 # beam code can be placed. The daemon will add these
12 # directories to its search path.
f0b4192 Claes Wikstrom ""
klacke authored
13 ebin_dir = %yawsdir%/examples/ebin
443b55e Claes Wikstrom Build and make fixes
klacke authored
14 ebin_dir = %vardir%/yaws/ebin
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
15
16 # This is a directory where application specific .hrl
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
17 # files can be placed. Application-specific .yaws code can
18 # then include these .hrl files.
f0b4192 Claes Wikstrom ""
klacke authored
19 include_dir = %yawsdir%/examples/include
20
53608c3 Claes Wikstrom max number of connections patch by Kinoshita
klacke authored
21 # Set this to an integer value to control
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
22 # max number of connections from clients into the server.
53608c3 Claes Wikstrom max number of connections patch by Kinoshita
klacke authored
23 max_connections = nolimit
92d0daf Claes Wikstrom ""
klacke authored
24
0446f2b Added a new configuration parameter called "keepalive_maxuses" which all...
Thomas O'Dowd authored
25 # Normally, yaws does not restrict the number of times a connection is
26 # kept alive using keepalive. Setting this parameter to an integer X
27 # will ensure that connections are closed once they have been used X times.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
28 # This can be a useful to guard against long running connections
29 # collecting too much garbage in the Erlang VM.
0446f2b Added a new configuration parameter called "keepalive_maxuses" which all...
Thomas O'Dowd authored
30 keepalive_maxuses = nolimit
31
aa217d8 Added a new configuration parameter to allow the administrator to contro...
Thomas O'Dowd authored
32 # Override the garbage collection option parameters for processes
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
33 # that handle new connections. Useful for systems expecting long-lived
34 # connections that handle a lot of data. The default value is Erlang's
aa217d8 Added a new configuration parameter to allow the administrator to contro...
Thomas O'Dowd authored
35 # default. Valid options are {fullsweep_after, X} and/or {min_heap_size, Y} where
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
36 # X and Y are integers. See Erlang's erlang:spawn_opt/4 function for more
028f2f0 Steve Vinoski add config setting for acceptor pool size
vinoski authored
37 # details. The value type is a quoted string containing an Erlang proplist or
38 # the atom undefined.
aa217d8 Added a new configuration parameter to allow the administrator to contro...
Thomas O'Dowd authored
39 process_options = "[]"
92d0daf Claes Wikstrom ""
klacke authored
40
028f2f0 Steve Vinoski add config setting for acceptor pool size
vinoski authored
41 # Set the size of the cached acceptor process pool. The value must be an
42 # integer greater than or equal to 0. The default pool size is 8. Setting
43 # the pool size to 0 effectively disables the pool.
44 #acceptor_pool_size = 8
45
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
46 # This is a debug variable, possible values are http | traffic | false
47 # It is also possible to set the trace (possibly to the tty) while
48 # invoking yaws from the shell as in
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
49 # yaws -i -T -x (see man yaws).
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
50 trace = false
51
d4fec79 Claes Wikstrom added support for OTP new ssl implementation
klacke authored
52 # Enable this if we want to use the old OTP ssl implementation
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
53 # OTP R13B03 is known to work with this flag set to false (default).
d4fec79 Claes Wikstrom added support for OTP new ssl implementation
klacke authored
54 use_old_ssl = false
92d0daf Claes Wikstrom ""
klacke authored
55
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
56 # It is possible to have yaws start additional application-specific code at
57 # startup. Set runmod to the name of the module you want yaws to start. It
58 # assumes the module has an exported function start/0. To have multiple
59 # runmods just add more "runmod = xyz" lines.
60 #
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
61 # runmod = mymodule
62
f0929a2 Claes Wikstrom patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
klacke authored
63 # By default yaws will copy the erlang error_log and
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
64 # append it to a wrap log called report.log (in the logdir).
65 # This feature can be turned off. This would typically
66 # be the case when yaws runs within another larger app.
f0929a2 Claes Wikstrom patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
klacke authored
67 copy_error_log = true
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
68
bea8261 Claes Wikstrom added log_wrap_size, configurable wrap size for all logs, fixed a bug in...
klacke authored
69 # Logs are wrap logs
70 log_wrap_size = 1000000
71
2ca4bda Claes Wikstrom added client IP resolv for access log files
klacke authored
72 # Possibly resolve all hostnames in logfiles so webalizer
73 # can produce the nice geography piechart
74 log_resolve_hostname = false
75
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
76 # Fail completely or not if yaws fails to bind a listen socket.
92d0daf Claes Wikstrom ""
klacke authored
77 fail_on_bind_err = true
78
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
79 # If HTTP auth is used, it is possible to have a specific
d9342f8 Christopher Faulet server-specific logger_mod and auth_mod (capflam)
authored
80 # auth log. As of release 1.90 the global auth_log is
81 # deprecated and ignored. Now, this variable must be set in
82 # server part
83 #auth_log = true
f0b4192 Claes Wikstrom ""
klacke authored
84
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
85 # When we're running multiple yaws systems on the same
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
86 # host, we need to give each yaws system an individual
87 # name. Yaws will write a number of runtime files under
d63642e Steve Vinoski do not pass the --id option if the default id is used
vinoski authored
88 # ${HOME}/.yaws/yaws/${id}
f0929a2 Claes Wikstrom patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
klacke authored
89 # The default value is "default"
d4fec79 Claes Wikstrom added support for OTP new ssl implementation
klacke authored
90 # If we're not planning to run multiple webservers on the
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
91 # same host it's much better to leave this value unset since
d4fec79 Claes Wikstrom added support for OTP new ssl implementation
klacke authored
92 # then all the ctl function (--stop et.el) work without having
93 # to supply the id.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
94 #
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
95 # id = myname
96
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
97 # Earlier versions of Yaws picked the first virtual host
14176e6 Claes Wikstrom added feature to not pick first sconf when virthosting
klacke authored
98 # in a list of hosts with the same IP/PORT when the Host:
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
99 # header doesn't match any name on any Host.
14176e6 Claes Wikstrom added feature to not pick first sconf when virthosting
klacke authored
100 # This is often nice in testing environments but not
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
101 # acceptable in real-world hosting scenarios;
102 # think http://porn.bigcompany.com
14176e6 Claes Wikstrom added feature to not pick first sconf when virthosting
klacke authored
103 pick_first_virthost_on_nomatch = true
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
104
17be957 Steve Vinoski Use gconf keepalive_timeout for connection lifetime (Brady McCary)
vinoski authored
105 # If the HTTP client session is to be kept alive, wait this many
106 # milliseconds for a new request before timing out the connection. Note
107 # that infinity is a valid value but it's not recommended.
108 keepalive_timeout = 30000
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
109
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
110 # Now, a set of virtual servers.
111 # The examples below first show two virthosted servers on the same IP (0.0.0.0)
112 # in this case, but an explicit IP can be given as well.
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
113
114 <server %host%>
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
115 port = %port%
116 listen = 0.0.0.0
117 docroot = %docroot%
d9342f8 Christopher Faulet server-specific logger_mod and auth_mod (capflam)
authored
118 auth_log = true
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
119 appmods = <cgi-bin, yaws_appmod_cgi>
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
120 </server>
f0b4192 Claes Wikstrom ""
klacke authored
121
122 <server localhost>
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
123 port = %port%
124 listen = 0.0.0.0
125 docroot = /tmp
126 dir_listings = true
d9342f8 Christopher Faulet server-specific logger_mod and auth_mod (capflam)
authored
127 auth_log = true
a42cf46 Olivier Girondel yaws_ctl and conf template
oliv3 authored
128 statistics = true
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
129 <auth>
130 realm = foobar
131 dir = /
132 user = foo:bar
133 user = baz:bar
134 </auth>
f0b4192 Claes Wikstrom ""
klacke authored
135 </server>
136
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
137 # Now an SSL server
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
138
139 <server %host%>
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
140 port = %sslport%
141 docroot = /tmp
142 listen = 0.0.0.0
143 dir_listings = true
d9342f8 Christopher Faulet server-specific logger_mod and auth_mod (capflam)
authored
144 auth_log = true
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
145 <ssl>
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
146 keyfile = %certdir%/yaws-key.pem
147 certfile = %certdir%/yaws-cert.pem
d4fec79 Claes Wikstrom added support for OTP new ssl implementation
klacke authored
148 depth = 0
0be3c7e Claes Wikstrom untabified all of yaws
klacke authored
149 </ssl>
1dcb026 Claes Wikstrom New better install procedure, better (more interesting) yaws.conf templa...
klacke authored
150 </server>
Something went wrong with that request. Please try again.