github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

klacke / yaws

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 140
    • 20
  • Source
  • Commits
  • Network (20)
  • Issues (5)
  • Downloads (7)
  • Wiki (12)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (7)
    • yaws-1.87
    • yaws-1.86
    • yaws-1.85
    • yaws-1.84
    • yaws-1.83
    • yaws-1.82
    • yaws-1.81
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Yaws webserver — Read more

  cancel

http://yaws.hyber.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

release work 
klacke (author)
Tue Feb 09 14:02:33 -0800 2010
commit  1e1850f683cbf11f8359c9c9d617a41947993ead
tree    1f84c2232a2bd44fd47f9915e45649ffd083ca41
parent  855d1913f990984dfc65de7b66662bfa3418366c
yaws /
name age
history
message
file .gitignore Tue Jun 09 00:15:52 -0700 2009 Added a .gitignore to file to ignore generated ... [Fabian Alenius]
file ChangeLog Thu Feb 08 07:48:25 -0800 2007 prepare 1.68 git-svn-id: https://erlyaws.svn.... [klacke]
file LICENSE Wed Apr 05 00:53:08 -0700 2006 changed licens to proper BSD git-svn-id: http... [klacke]
file Makefile Fri Mar 06 02:03:38 -0800 2009 Rename shopingcart to shoppingcart This should... [ndim]
file README Wed Dec 02 13:14:25 -0800 2009 README docs [klacke]
file README.pkg-config Thu Jan 29 15:29:48 -0800 2009 add pkg-config support contributed by Olivier G... [vinoski]
file README.win32-cygwin Mon Aug 03 04:07:55 -0700 2009 readme docs [klacke]
file _build.cfg Thu May 15 01:39:10 -0700 2008 Adding files for Erlware. A very rough packagin... [Tobbe Tornquist]
directory applications/ Thu Sep 17 11:17:02 -0700 2009 more efficient check for the yaws application b... [vinoski]
directory bin/ Mon Mar 04 12:26:30 -0800 2002 "" git-svn-id: https://erlyaws.svn.sourceforg... [klacke]
directory c_src/ Fri Dec 04 19:50:13 -0800 2009 if sendfile hits EOVERFLOW send the file from E... [vinoski]
file config.guess Sat Mar 13 03:03:03 -0800 2004 "" git-svn-id: https://erlyaws.svn.sourceforg... [klacke]
file config.sub Sat Mar 13 03:03:03 -0800 2004 "" git-svn-id: https://erlyaws.svn.sourceforg... [klacke]
file configure.in Tue Feb 09 03:37:52 -0800 2010 apparently erl can ?? soon be an executable, ca... [Claes Wikstrom]
directory debian/ Mon May 24 06:37:04 -0700 2004 debian patch from David Welton applied git-sv... [klacke]
directory doc/ Sat Oct 17 12:09:34 -0700 2009 document yaws_multipart (with the assistance of... [vinoski]
directory ebin/ Mon Jun 10 14:35:55 -0700 2002 "" git-svn-id: https://erlyaws.svn.sourceforg... [klacke]
directory examples/ Sun Dec 06 05:49:46 -0800 2009 preparing for 1.86 [klacke]
file include.mk.in Tue Jan 05 13:51:56 -0800 2010 conditional compile of websockets [klacke]
directory include/ Mon Dec 14 20:23:27 -0800 2009 do not pass the --id option if the default id i... [vinoski]
file install-sh Wed Nov 27 15:24:25 -0800 2002 added ability to run as different user than roo... [klacke]
directory man/ Mon Feb 01 00:12:51 -0800 2010 added support for OTP new ssl implementation [klacke]
directory munin/ Fri Jun 12 07:28:05 -0700 2009 README.munin [Olivier Girondel]
directory priv/ Mon Feb 23 02:04:25 -0800 2009 empty dir [klacke]
directory scripts/ Tue Feb 09 14:02:33 -0800 2010 release work [klacke]
directory src/ Sat Feb 06 13:19:30 -0800 2010 allow caller to set Host header for SOAP requests [vinoski]
directory ssl/ Sun Oct 18 06:54:55 -0700 2009 mkcert [klacke]
directory test/ Sun Dec 20 09:28:08 -0800 2009 proper handling of "/" appmod with excluded pat... [vinoski]
file two-mode-mode.el Thu Feb 14 08:57:23 -0800 2008 untabified all of yaws git-svn-id: https://erl... [klacke]
file vsn.mk Tue Jan 05 05:46:02 -0800 2010 prepare for 1.87 [klacke]
directory win32/ Mon Dec 14 20:23:27 -0800 2009 do not pass the --id option if the default id i... [vinoski]
directory www/ Mon Jan 11 13:11:26 -0800 2010 re-prepare for 1.87 [klacke]
file yaws.pc.in Thu Jan 29 15:29:48 -0800 2009 add pkg-config support contributed by Olivier G... [vinoski]
file yaws.rel.src Mon Sep 01 01:32:30 -0700 2008 yaws.rel.src was missing and better error print... [klacke]
README
This is yaws, a webserver for dynamic content written in Erlang.


To build and install


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

1. If you've cloned the source from github, there is no ./configure
   script in the source, create one:

# autoconf


1.b Install build-deps. On Ubuntu/debian this is pretty much equal to 
# apt-get build-dep yaws 

:-)



2. ./configure --prefix=/usr/local
   This will install everything under /usr/local including var files
   in /usr/local/var/run/yaws and etc files in
   /usr/local/etc/yaws.*

  A plain ./configure will install executables under 
  /usr/local/bin and libs in /usr/local/lib/yaws etc and
  var files will end up under /usr/local/etc and /usr/local/var


Note: We 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
  --disable-pam  If we for some reason do not want pam support
  --with-extrainclude=DIR Will add DIR to the include path
                      May be useful if e.g. pam is installed
          somewhere where its usually not found
  --with-defaultcharset=String  Will set the default charset used
                        in generated page headers. Usually never needed.
                        
This way you can precisely control where you install Yaws (This is
usefull for computers where you do not have right access to the 
standard systemdirs). 

For example:
./configure --prefix=/home/install/yaws --localstatedir=/home/install/yaws/var --sysconfdir=/home/install/etc


2b. Note to packagers (rpm, deb ...) All install targets support the 
    DESTDIR variable.
    Thus, if we do ./configure --prefix=/usr; make
    we can subsequently do:
    DESTDIR=/foo/bar make install
    All yaws files will be installed under DESTDIR, but all 
    code will assume yaws should be installed under /usr


3. make
     This will build the system

  make docs 
     (Optional) 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. This is for developers
     only

4.   To test the build, Start as bin/yaws -i 
     This will start a webserver at http://0.0.0.0:8000
     Terminate through ^C or 
     > init:stop()

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 /usr/local/etc/yaws/yaws.conf 

9. Create content in /usr/local/var/yaws

10a. Start as /usr/local/bin/yaws --daemon --heart
     This will start a daemon (--daemon) which will be autorestarted when/if
     it crashes or hangs (--heart)
     Also, for most unices, we create proper start scripts in
     /etc/init.d (sysconfdir)

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


11.  Example: Here is how I compile/start the yaws system that runs
     at http://yaws.hyber.org (Ubuntu server system)

     # autoconf
     # ./configure --sysconfdir=/etc
     # make && make install
     # /etc/init.d/yaws start



Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server