Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 63 lines (40 sloc) 1.59 kB
21abc5b @klacke Initial revision
authored
1
2 <erl>
3
4 out(A) ->
5 {ok, B1} = file:read_file([A#arg.docroot, "/HEAD"]),
6 {ok, B2} = file:read_file([A#arg.docroot, "/TOPTAB"]),
7 {ok, [B1, B2]}.
8
9 </erl>
10
11
12 <H2>Configuring Yaws</h2>
13
14 Web server configuration can be supplied to yaws
15 in either of two ways depending
16 on wheter we run yaws as a standalone daemon or if we run yaws as an
17 embedded application inside another Erlang program.
18
19 <br>
20 This will change once we implement virtual hosting ....
21
22 <br>
23
24 <h3>Daemon mode</h3>
25
26 The default location where yaws look for it's configuration file is
27 <tt>/etc/yaws.conf</tt>.
28
29 All fields in yaws.conf have reasonable default values, so just
30 running yaws with no config file at all, will still make a
31 webserver run on localhost:80
32
33 <h3>Embedded mode</h3>
34 ....
35
36
37
38
39 <h2>Building yaws</h2>
40
41 Before even trying to install yaws, we must have an installed
42 erlang system on the host. Get that at
43 <a href="http:www.erlang.org">www.erlang.org</a>.
44
45 <br>
46 At the top level in the yaws source distribuition, there is no
47 configure script, we don't need that. (Well almost not)
48 <br>
49
50 <ul>
51 <li><tt> make </tt> will build and locally install a yaws web server. After
52 a local install, the command ./bin/yaws, will start a daemon which listens
53 to port 8000 on localhost. The document root will be set to the yaws
54 documentation.
55
56 <li> <tt> make install </tt> will install a yaws system in /usr/local.
57 That system will have its configuration in /etc/yaws.conf, log files
58 in /var/logs and docroot in /var/yaws. If /var/yaws doesn't exist, the yaws
59 documentaion will also be copied there.
60
61
62 </ul>
Something went wrong with that request. Please try again.