Hi 
I hope someone can help me. I am transitioning to developing with Erlang/Yaws after serveral years of PHP.

I'm having trouble setting up an app mod service I created a yaws.conf file 

<server localhost>
        port = 8000
        listen = 127.0.0.1
        docroot = /home/zach/InCharecter/
        appmods = <book, book>
</server>

and put the book.erl (which I jsut took from the example)

-module(book).
-author('zkessin@gmail.com').
-include("/usr/lib/yaws/include/yaws_api.hrl").
-compile(export_all).
box(Str) ->
    {'div',[{class,"box"}],
     {pre,[],Str}}.
out(A) ->
    {ehtml,
     [{p,[],
       box(io_lib:format("A#arg.appmoddata = ~p~n"
                         "A#arg.appmod_prepath = ~p~n"
                         "A#arg.querydata = ~p~n", 
                         [A#arg.appmoddata,
                          A#arg.appmod_prepath,
                          A#arg.querydata]))}]}.


And all it seems to do is give is an internal error. (The book.erl and book.beam files are in the doc root)

--Zach