[erlang-questions] Is Erlyweb working with Yaws 1.8.1? and other framework questions

Carl McDade carlmcdade@REDACTED
Sat May 23 14:45:05 CEST 2009


Actually that is just an excerpt from the error encountered by David
while going through the tutorial that is on Yariv's (the erlyweb
creator) website. My yaws.conf looks like this:

<server localhost>
        port = 8080
        listen = 0.0.0.0
        docroot = "C:\erlang\lib\Yaws-1.81/www"
"C:/erlang/lib/Yaws-1.81/applications/music/www"
        appmods = <cgi-bin, yaws_appmod_cgi> <"/music", erlyweb>
	
	<opaque>
		appname = "music"
	</opaque>
</server>

The problems is that in the above appmod music is not found and
errors. Surfing to http://localhost:8080/music produces an appmod
error.

But if you change the configuration so that the appmod music is the
only one and under http://localhost:8080 then the config below works:

<server localhost>
        port = 8080
        listen = 0.0.0.0
        docroot = "C:\erlang\lib\Yaws-1.81/www"
"C:/erlang/lib/Yaws-1.81/applications/music/www"
        appmods = <"music", erlyweb>
	
	<opaque>
		appname = "music"
	</opaque>
</server>

So there is some conflict with Yaws or a problem with Erlyweb.

/Carl



On Sat, May 23, 2009 at 12:51 PM, Andrew <buricchio@REDACTED> wrote:
> erlyweb:create_app - that' all you do?
> Do you compile it? Aplication can't work without compile.
> You have incorect yaws.conf too (you must have erlyweb in appmods).
> Seems you need to read manual.
>
> Carl McDade wrote:
>>
>> Yup,
>>
>> I spent a couple of days going through the archives and only found
>> that many were having the same problem with the paths producing a
>> function not found error. I then turned to Yarivs blog and found the
>> same situation, many with the exact same problem but no answers.
>>
>> specifically we  all have the same problem as dave who describes it best:
>>
>>
>>
>> When I follow this instruction, I met some error at the initial step.
>> I run erlyweb:create_app(”music”, “/home/myid/apps”)., and set the
>> yaws.conf as follow:
>>
>> docroot = /home/myid/apps/music/www
>> appmods =
>>
>> appname = music
>>
>> After I run yaws and when i put the url below in my browser, an error
>> occurred. Here’s the error. What’s the matter??
>>
>
>



-- 
Carl McDade
Content Management Systems Consultant
www.hiveminds.co.uk
________________________



More information about the erlang-questions mailing list