An by multiple users 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>
This configuration pretty much means Erlyweb app has taken over this
server instance (sigh just way too much like Rails). But according to
Yaws docs and Yariv's blog this should not happen. So there is some
conflict with Yaws or a problem with Erlyweb.
/Carl