Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  can't find conf even when yaws.conf path provided

Guest
Posted: Wed Nov 14, 2007 10:23 pm Reply with quote
Guest
I am trying to startup the yaws server. But for whatever reason, this
is not working.

[root@dev etc]# erl -pa /usr/local/yaws/lib/yaws/ebin -yaws debug -run
yaws --conf /usr/local/yaws/etc/yaws.conf -yaws id default
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.5.5 (abort with ^G)
1>
=ERROR REPORT==== 14-Nov-2007::17:01:02 ===
Yaws: Bad conf: "Can't find no config file "


here is my yaws.conf:

# conf for yaws


# first we have a set of globals
# That apply to all virtual servers


# This is the directory where all logfiles for
# all virtual servers will be written

logdir = /usr/local/yaws/var/log/yaws

# This the path to a directory where additional
# beam code can be placed. The daemon will add this
# directory to its search path

ebin_dir = /usr/local/yaws/lib/yaws/examples/ebin
ebin_dir = /usr/local/yaws/var/yaws/ebin


# This is a directory where application specific .hrl
# files can be placed. application specifig .yaws code can
# then include these .hrl files

include_dir = /usr/local/yaws/lib/yaws/examples/include





# 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





# it is possible to have yaws start additional
# application specific code at startup
#
# runmod = mymodule


# 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 yaws is started as root, it can, once it has opened
# all relevant sockets for listening, change the uid to a
# user with lower accessrights than root

# username = nobody


# 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"


# id = myname


# 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




# end then a set of virtual servers
# First two virthosted servers on the same IP (0.0.0.0)
# in this case, but an explicit IP can be given as well

<server dev>
port = 80
listen = 0.0.0.0
docroot = /usr/local/yaws/var/yaws/www
</server>

<server localhost>
port = 80
listen = 0.0.0.0
docroot = /tmp
dir_listings = true
dav = true
<auth>
realm = foobar
dir = /
user = foo:bar
user = baz:bar
</auth>
</server>



# And then an ssl server

<server dev>
port = 443
docroot = /tmp
listen = 0.0.0.0
dir_listings = true
<ssl>
keyfile = /usr/local/yaws/etc/yaws-key.pem
certfile = /usr/local/yaws/etc/yaws-cert.pem
</ssl>
</server>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Thu Nov 15, 2007 11:47 am Reply with quote
Guest
joe lee wrote:
> I am trying to startup the yaws server. But for whatever reason, this
> is not working.
>
> [root@dev etc]# erl -pa /usr/local/yaws/lib/yaws/ebin -yaws debug -run
> yaws --conf /usr/local/yaws/etc/yaws.conf -yaws id default

If you want to start yaws from the erl script as opposed to
from the yaws script, I suggest you first run the yaws script
as

# sh -x /usr/local/bin/yaws -i

To see which flags are passed by the yaws script to the
erl script. Or have a look at the yaws script and, well
just figure it out.




/klacke


--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
wuji
Posted: Sat Aug 11, 2012 1:45 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
tate with roughly the same population as the city of of cheap polo shirts of San Antonio, has been a momentum-setter in presidential elections
nearly a century.While Iowa has held its caucus before New New [h4]red bottom shoes[/h4] New Hampshire's primary every year since 1972, Iowa's caucus results
non-binding and delegates are not officially awarded until June, making making cheap designer *beep* making New Hampshire the first state to award delegates in
presidential nominating cycle.Since its first-in-the-nation status became official more than than cheap Christian Louboutin than 30 years ago, only two Republican presidential candidates have
in New Hampshire and gone on to win the nomination.With nomination.With Christian Louboutin Outlet nomination.With Mitt Romney taking a narrow win in Iowa and
a
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum