On Mon, Apr 1, 2013 at 3:42 AM, ct <v116mo@gmail.com> wrote:
HI all,

I cannot find the way to make the Yaws's WebSockets example to work correctly if a .yaws_auth file is added to the docroot directory to enable the HTTP basic authorization. The .yaws_auth simply contains the following line

{"demo", "demo"}.


The following line is added to the log file localhost.8080.auth on each attempt.
127.0.0.1 [01/Apr/2013:14:22:34 +0800] localhost:8080 "/websockets_example_endpoint.yaws?extversion=true&keepalive=true&timeout=5000" 401 realm=

Removed the .yaws_auth the websockets example works perfectly.

My installation has Yaws 1.96 and Erlang R16B for windows xp

Hi Vincent,

Have you tried defining a suitable <auth>...</auth> structure in your config? See page 55 of http://yaws.hyber.org/yaws.pdf .

--steve