Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yaws webserver
Erlang Shell C JavaScript HTML Makefile Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
applications
bin
c_src
debian
doc
ebin
examples
include
man
priv
scripts
sourceforge-site
src
ssl
www
ChangeLog
LICENSE
Makefile
README
config.guess
config.sub
configure
configure.in
include.mk.in
install-sh
two-mode-mode.el
vsn.mk

README

This is yaws, a webserver for dynamic content written in Erlang.


To build and install


1. Get and install an erlang system (http://www.erlang.org)

2. ./configure --prefix=/usr/local

Note: If can also change the target directory for etc and var 
      directories by using:
  --localstatedir=DIR for files that should go in /var
  --sysconfdir=DIR for files that should go in /etc
This way you can precisely control where you install the software (This is
usefull for computers where you do not have right access to the 
standard systemdirs). It is now possible to install everything in a 
single directory and use Stow to create symlinks to /usr/local
For example:
./configure --prefix=/home/install/yaws-1.01 --localstatedir=/home/install/yaws-1.01/var --sysconfdir=/home/install/yaws-1.01/etc


3. make
     This will build the system

  make docs 
     (Optionnal) You can issue this command if you want to build Yaws
     documentation.

  make local_install
     and perform something we call a
     local install. It will create an executable script in the $HOMe/bin 
     directory and a config file in $HOME/yaws.conf

4.   Start as bin/yaws -i 
     This will create a webserver at http://0.0.0.0:8000

5. as root make install

6. as root Start as /usr/local/bin/yaws -i 
   (this starts an interactive system)

7. This will create a webserver at http://${host} and one at https://${host}

8. as root Edit /etc/yaws.conf 

9. Create content in /var/yaws

10a. Start as /usr/local/bin/yaws -D -heart
     This will start a daemon (-D) which will be autorestarted when/if
     it crashes or hangs (-heart)

10b. Or start interactive system as /usr/local/bin/yaws -i

Something went wrong with that request. Please try again.