forked from erlyaws/yaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.win32-cygwin
94 lines (66 loc) · 2.48 KB
/
README.win32-cygwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Yaws on Cygwin/Windows
Written by Bill Robertsson ([email protected])
Thu May 22 13:24:48 CEST 2008
To install.
You must have cygwin installed. This should include perl,
autoconf and make. There may be other packages that are
required. It is very useful to have your cygwin bin
(c:\cygwin\bin) directories in your path. This allows
you to run cygwin commands from a regular cmd propmt.
Erlang must be installed and in your path. I find it useful
to ignore the default location for erlang, and place it in a
directory that does not have spaces in it. e.g. C:\erl5.6.2
It is less annoying if you do much scripting.
Extract the yaws archive, e.g.
> tar -xzf yaws-1.76.tar.gz
Change to the newly created directory, start bash and run
configure. I recommend you select something other than the
default prefix, because you probably don't want YAWS in your
cygwin directories.
e.g.
> cd yaws-1.76
> bash
> ./configure --prefix=/cygdrive/c/erl_stuff/yaws
If you're unfamiliar with cygwin, /cygdrive/c/ is the usual
way to say c:\. --prefix is configure's standard way of
specifying the install directory when installing something
via. autoconf.
After running configure. You will see a bunch of "checking..."
lines. Then it will create the config.status and the include.mk
files. After that you will want to build the system with make.
> make
It should complete without errors. After than, install it.
> make install
This will create a directory that you specified in configure, and
install yaws there. In our example, this will be c:\erlstuff\yaws.
Go to that directory and edit yaws.conf in the etc directory.
First, is a section like this.
<server localhost>
port = 80
listen = 0.0.0.0
docroot = /tmp
dir_listings = true
<auth>
realm = foobar
dir = /
user = foo:bar
user = baz:bar
</auth>
</server>
If you have content that you would like to serve up, switch the docroot
to that directory, otherwise just comment out or delete this section.
There is also a section like this.
<server foo>
port = 443
docroot = c:/bill/erl/yaws/var/yaws/www
listen = 0.0.0.0
dir_listings = true
<ssl>
keyfile = c:/bill/erl/yaws/etc/yaws-key.pem
certfile = c:/bill/erl/yaws/etc/yaws-cert.pem
</ssl>
</server>
SSL ??
Untested:
erlang in a directory with spaces in the name (e.g. "Program Files"
make local_install