Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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