Skip to content
This repository
Newer
Older
100644 150 lines (125 sloc) 5.163 kb
21abc5ba » klacke
2002-02-11 Initial revision
1
2 # conf for yaws
3
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
4 # First we have a set of globals that apply to all virtual servers
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
5
6 # This is the directory where all logfiles for
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
7 # all virtual servers will be written.
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
8 logdir = %logdir%
9
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
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.
f0b4192c » klacke
2002-02-12 ""
13 ebin_dir = %yawsdir%/examples/ebin
443b55e4 » klacke
2007-08-16 Build and make fixes
14 ebin_dir = %vardir%/yaws/ebin
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
15
16 # This is a directory where application specific .hrl
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
17 # files can be placed. Application-specific .yaws code can
18 # then include these .hrl files.
f0b4192c » klacke
2002-02-12 ""
19 include_dir = %yawsdir%/examples/include
20
53608c39 » klacke
2009-08-17 max number of connections patch by Kinoshita
21 # Set this to an integer value to control
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
22 # max number of connections from clients into the server.
53608c39 » klacke
2009-08-17 max number of connections patch by Kinoshita
23 max_connections = nolimit
92d0dafa » klacke
2005-02-15 ""
24
0446f2b8 » Thomas O'Dowd
2010-04-14 Added a new configuration parameter called "keepalive_maxuses" which …
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.
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
28 # This can be a useful to guard against long running connections
29 # collecting too much garbage in the Erlang VM.
0446f2b8 » Thomas O'Dowd
2010-04-14 Added a new configuration parameter called "keepalive_maxuses" which …
30 keepalive_maxuses = nolimit
31
aa217d8f » Thomas O'Dowd
2010-04-07 Added a new configuration parameter to allow the administrator to con…
32 # Override the garbage collection option parameters for processes
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
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
aa217d8f » Thomas O'Dowd
2010-04-07 Added a new configuration parameter to allow the administrator to con…
35 # default. Valid options are {fullsweep_after, X} and/or {min_heap_size, Y} where
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
36 # X and Y are integers. See Erlang's erlang:spawn_opt/4 function for more
028f2f08 » vinoski
2011-09-26 add config setting for acceptor pool size
37 # details. The value type is a quoted string containing an Erlang proplist or
38 # the atom undefined.
aa217d8f » Thomas O'Dowd
2010-04-07 Added a new configuration parameter to allow the administrator to con…
39 process_options = "[]"
92d0dafa » klacke
2005-02-15 ""
40
028f2f08 » vinoski
2011-09-26 add config setting for acceptor pool size
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
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
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
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
49 # yaws -i -T -x (see man yaws).
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
50 trace = false
51
d4fec792 » klacke
2010-02-01 added support for OTP new ssl implementation
52 # Enable this if we want to use the old OTP ssl implementation
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
53 # OTP R13B03 is known to work with this flag set to false (default).
d4fec792 » klacke
2010-02-01 added support for OTP new ssl implementation
54 use_old_ssl = false
92d0dafa » klacke
2005-02-15 ""
55
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
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 #
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
61 # runmod = mymodule
62
f0929a29 » klacke
2004-05-25 patch from Jimmy Olgeni to handle embedded mode better, no ctl proces…
63 # By default yaws will copy the erlang error_log and
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
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.
f0929a29 » klacke
2004-05-25 patch from Jimmy Olgeni to handle embedded mode better, no ctl proces…
67 copy_error_log = true
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
68
bea82617 » klacke
2004-11-19 added log_wrap_size, configurable wrap size for all logs, fixed a bug…
69 # Logs are wrap logs
70 log_wrap_size = 1000000
71
2ca4bda1 » klacke
2004-12-13 added client IP resolv for access log files
72 # Possibly resolve all hostnames in logfiles so webalizer
73 # can produce the nice geography piechart
74 log_resolve_hostname = false
75
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
76 # Fail completely or not if yaws fails to bind a listen socket.
92d0dafa » klacke
2005-02-15 ""
77 fail_on_bind_err = true
78
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
79 # If HTTP auth is used, it is possible to have a specific
d9342f8b »
2011-05-04 server-specific logger_mod and auth_mod (capflam)
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
f0b4192c » klacke
2002-02-12 ""
84
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
85 # When we're running multiple yaws systems on the same
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
86 # host, we need to give each yaws system an individual
87 # name. Yaws will write a number of runtime files under
d63642ed » vinoski
2009-12-14 do not pass the --id option if the default id is used
88 # ${HOME}/.yaws/yaws/${id}
f0929a29 » klacke
2004-05-25 patch from Jimmy Olgeni to handle embedded mode better, no ctl proces…
89 # The default value is "default"
d4fec792 » klacke
2010-02-01 added support for OTP new ssl implementation
90 # If we're not planning to run multiple webservers on the
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
91 # same host it's much better to leave this value unset since
d4fec792 » klacke
2010-02-01 added support for OTP new ssl implementation
92 # then all the ctl function (--stop et.el) work without having
93 # to supply the id.
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
94 #
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
95 # id = myname
96
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
97 # Earlier versions of Yaws picked the first virtual host
14176e66 » klacke
2005-09-29 added feature to not pick first sconf when virthosting
98 # in a list of hosts with the same IP/PORT when the Host:
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
99 # header doesn't match any name on any Host.
14176e66 » klacke
2005-09-29 added feature to not pick first sconf when virthosting
100 # This is often nice in testing environments but not
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
101 # acceptable in real-world hosting scenarios;
102 # think http://porn.bigcompany.com
14176e66 » klacke
2005-09-29 added feature to not pick first sconf when virthosting
103 pick_first_virthost_on_nomatch = true
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
104
17be9573 » vinoski
2010-05-10 Use gconf keepalive_timeout for connection lifetime (Brady McCary)
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
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
109
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
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.
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
113
114 <server %host%>
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
115 port = %port%
116 listen = 0.0.0.0
117 docroot = %docroot%
d9342f8b »
2011-05-04 server-specific logger_mod and auth_mod (capflam)
118 auth_log = true
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
119 appmods = <cgi-bin, yaws_appmod_cgi>
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
120 </server>
f0b4192c » klacke
2002-02-12 ""
121
122 <server localhost>
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
123 port = %port%
124 listen = 0.0.0.0
125 docroot = /tmp
126 dir_listings = true
d9342f8b »
2011-05-04 server-specific logger_mod and auth_mod (capflam)
127 auth_log = true
a42cf46b » oliv3
2009-06-12 yaws_ctl and conf template
128 statistics = true
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
129 <auth>
130 realm = foobar
131 dir = /
132 user = foo:bar
133 user = baz:bar
134 </auth>
f0b4192c » klacke
2002-02-12 ""
135 </server>
136
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
137 # Now an SSL server
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
138
139 <server %host%>
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
140 port = %sslport%
141 docroot = /tmp
142 listen = 0.0.0.0
143 dir_listings = true
d9342f8b »
2011-05-04 server-specific logger_mod and auth_mod (capflam)
144 auth_log = true
bedbc05b » tuncer
2011-05-07 add rebar support (Tuncer Ayaz and Steve Vinoski)
145 <ssl>
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
146 keyfile = %certdir%/yaws-key.pem
147 certfile = %certdir%/yaws-cert.pem
d4fec792 » klacke
2010-02-01 added support for OTP new ssl implementation
148 depth = 0
0be3c7e8 » klacke
2008-02-14 untabified all of yaws
149 </ssl>
1dcb0263 » klacke
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
150 </server>
Something went wrong with that request. Please try again.