Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 148 lines (80 sloc) 2.582 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
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
19
20
21 # This is a directory where application specific .hrl
22 # files can be placed. application specifig .yaws code can
23 # then include these .hrl files
24
f0b4192 @klacke ""
authored
25 include_dir = %yawsdir%/examples/include
26
27
28
92d0daf @klacke ""
authored
29
30
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
31 # This is a debug variable, possible values are http | traffic | false
32 # It is also possible to set the trace (possibly to the tty) while
33 # invoking yaws from the shell as in
34 # yaws -i -T -x (see man yaws)
35
36 trace = false
37
38
39
92d0daf @klacke ""
authored
40
41
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
42 # it is possible to have yaws start additional
43 # application specific code at startup
44 #
45 # runmod = mymodule
46
47
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
authored
48 # By default yaws will copy the erlang error_log and
49 # end write it to a wrap log called report.log (in the logdir)
50 # this feature can be turned off. This would typically
51 # be the case when yaws runs within another larger app
52
53 copy_error_log = true
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
54
55
bea8261 @klacke added log_wrap_size, configurable wrap size for all logs, fixed a bug in...
authored
56 # Logs are wrap logs
57
58 log_wrap_size = 1000000
59
60
2ca4bda @klacke added client IP resolv for access log files
authored
61 # Possibly resolve all hostnames in logfiles so webalizer
62 # can produce the nice geography piechart
63
64 log_resolve_hostname = false
65
66
92d0daf @klacke ""
authored
67
68 # fail completely or not if yaws fails
69 # to bind a listen socket
70 fail_on_bind_err = true
71
72
73
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
74 # If yaws is started as root, it can, once it has opened
75 # all relevant sockets for listening, change the uid to a
76 # user with lower accessrights than root
77
78 # username = nobody
79
80
81 # If HTTP auth is used, it is possible to have a specific
82 # auth log.
83
84 auth_log = true
f0b4192 @klacke ""
authored
85
86
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
87 # When we're running multiple yaws systems on the same
88 # host, we need to give each yaws system an individual
89 # name. Yaws will write a number of runtime files under
90 # /tmp/yaws/${id}
f0929a2 @klacke patch from Jimmy Olgeni to handle embedded mode better, no ctl process i...
authored
91 # The default value is "default"
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
92
93
94 # id = myname
95
96
97
98
99
100
101
102
103 # end then a set of virtual servers
104 # First two virthosted servers on the same IP (0.0.0.0)
105 # in this case, but an explicit IP can be given as well
106
107 <server %host%>
108 port = %port%
109 listen = 0.0.0.0
110 docroot = %docroot%
111 </server>
f0b4192 @klacke ""
authored
112
113 <server localhost>
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
114 port = %port%
115 listen = 0.0.0.0
116 docroot = /tmp
117 dir_listings = true
118 <auth>
119 realm = foobar
120 dir = /
121 user = foo:bar
122 user = baz:bar
123 </auth>
f0b4192 @klacke ""
authored
124 </server>
125
126
127
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf templa...
authored
128 # And then an ssl server
129
130 <server %host%>
131 port = %sslport%
132 docroot = /tmp
133 listen = 0.0.0.0
134 dir_listings = true
135 <ssl>
136 keyfile = %certdir%/yaws-key.pem
137 certfile = %certdir%/yaws-cert.pem
138 </ssl>
139 </server>
140
141
142
143
144
145
146
21abc5b @klacke Initial revision
authored
147
Something went wrong with that request. Please try again.