From 6ff8e72d002f5ccf2045cbccef2fdc4f92cff938 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sun, 10 Aug 2008 21:41:47 +0000 Subject: [PATCH] =?utf8?q?ADD=20la=20configuration=20du=20serveur=20web=20?= =?utf8?q?en=20mode=20d=C3=A9veloppement?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/start_yaws.sh | 2 +- tools/yaws.conf | 87 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 tools/yaws.conf diff --git a/tools/start_yaws.sh b/tools/start_yaws.sh index 062413a..fbc9a22 100755 --- a/tools/start_yaws.sh +++ b/tools/start_yaws.sh @@ -1,2 +1,2 @@ #!/bin/bash -yaws --conf /etc/yaws/yaws.conf --sname yaws --mnesiadir "../BD/" -I debian_yaws +yaws --conf ./yaws.conf --sname yaws_dev --mnesiadir "../BD/" -I debian_yaws_dev diff --git a/tools/yaws.conf b/tools/yaws.conf new file mode 100644 index 0000000..81a96bb --- /dev/null +++ b/tools/yaws.conf @@ -0,0 +1,87 @@ +# Configuration pour euphorik.ch en mode de développement. + +logdir = /tmp + +ebin_dir = /usr/lib/yaws/ebin +ebin_dir = /home/gburri/projets/euphorik/trunk/modules/ebin + +include_dir = /usr/lib/yaws/include +include_dir = /home/gburri/projets/euphorik/trunk/modules/include + + + + port = 8090 + listen = 0.0.0.0 + docroot = /home/gburri/projets/euphorik/trunk + allowed_scripts = yaws + appmods = + start_mod = euphorik_daemon + # dir_listings = true + + + +# This is a debug variable, possible values are http | traffic | false +# It is also possible to set the trace (possibly to the tty) while +# invoking yaws from the shell as in +# yaws -i -T -x (see man yaws) +trace = false + +cache_refresh_secs = 0 + +# it is possible to have yaws start additional +# application specific code at startup +# runmod = my_app + + +# By default yaws will copy the erlang error_log and +# end write it to a wrap log called report.log (in the logdir) +# this feature can be turned off. This would typically +# be the case when yaws runs within another larger app +copy_error_log = true + + +# Logs are wrap logs +log_wrap_size = 1000000 + + +# Possibly resolve all hostnames in logfiles so webalizer +# can produce the nice geography piechart +log_resolve_hostname = false + + +# fail completely or not if yaws fails +# to bind a listen socket +fail_on_bind_err = true + + +# If HTTP auth is used, it is possible to have a specific +# auth log. +auth_log = true + + +# When we're running multiple yaws systems on the same +# host, we need to give each yaws system an individual +# name. Yaws will write a number of runtime files under +# /tmp/yaws/${id} +# The default value is "default" +# +# In Debian system init script supplies id from the command +# line, so it's not necessary to specify it here +# id = debian_yaws_pre_prod + + +# earlier versions of Yaws picked the first virtual host +# in a list of hosts with the same IP/PORT when the Host: +# header doesn't match any name on any Host +# This is often nice in testing environments but not +# acceptable in real live hosting scenarios +pick_first_virthost_on_nomatch = true + +# All unices are broken since it's not possible to bind to +# a privileged port (< 1024) unless uid==0 +# There is a contrib in jungerl which makes it possible by means +# of an external setuid root programm called fdsrv to listen to +# to privileged port. +# If we use this feature, it requires fdsrv to be properly installed. +# Doesn't yet work with SSL. +use_fdsrv = false -- 2.43.0