Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  yaws:add_server only uses the last server added

Guest
Posted: Thu Sep 27, 2007 12:02 am Reply with quote
Guest
When I use yaws:add_server to add servers for erlyweb apps with the same servername and port, only the last server gets recognized.
Guest
Posted: Thu Sep 27, 2007 7:54 am Reply with quote
Guest
Robin Bhattacharyya wrote:
> When I use yaws:add_server to add servers for erlyweb apps with the same
> servername and port, only the last server gets recognized. Both apps
> work fine when added independently, and both apps appear in the
> yaws_api:getconf(), but only the last server added actually works, other
> servers return 404 when accessed. Is this the expected behavior or a bug?
>

I'm not sure if I'm answering the right question here. But we cannot
have two servers with the same name/port pair.

If we specify such a duplicate pair in yaws.conf

We get:

=ERROR REPORT==== 27-Sep-2007::09:45:16 ===
Yaws: bad conf: To servers in the same group cannot have same name "buzz:8000" terminating


Which is what we really should get when doing add_server() on something
that already exists.

Thus, it is both expected behaviour and also a bug. The expexted
behaviour is that the configuration is invalid, and the bug is
that it's not reported.

Thus, to reiterate: what uniquely identifies a virtual server
in yaws is the Name:Port pair which needs to be unique.

/klacke

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Thu Sep 27, 2007 9:22 am Reply with quote
Guest
Robin Bhattacharyya wrote:
> Is it possible to mount 2 appmods under the same servername/port?
>

Yes, no limit there.


> For example 2 erlyweb apps (/blog,/wiki) under localhost/3000?
>

This I don't know.

/klacke

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

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