Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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