Re: [prosody-users] prosody configuration for vserver

1,515 views
Skip to first unread message

Matthew Wild

unread,
Apr 25, 2013, 1:31:15 PM4/25/13
to Prosody IM Users Group
Hi,

On 25 April 2013 16:48, chrizz <haake.c...@gmail.com> wrote:
> Hi folks,
> hope this question did not came up very often.
>
> Here is my problem:
> On a virtual server I'm running an instance of prosody. A port scan onto
> this server shows open ports 5222 (Client) & 5269 (Server).

Sound like everything is up and running then.

> I have the mod_register module enabled but when I try to register a new
> account I get:
>
> Apr 25 17:31:03 c2s1663dad0 info Client connected
> Apr 25 17:31:03 c2s1663dad0 info Disconnecting client, <stream:error>
> is: <stream:error><host-unknown
> xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text
> xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve
> 12.34.56.78</text></stream:error>
> Apr 25 17:31:03 c2s1663dad0 info Client disconnected: This server
> does not serve 12.34.56.78
> Apr 25 17:31:03 c2s1663dad0 info Destroying session for (unknown)
> ((unknown)@12.34.56.78)
>

This error means the virtual host you are trying to connect to (or
register on) isn't in the Prosody config file.

> Doesn't this work with IP addresses at all? What do I have to use for as
> VirtualHost in configuration file in case I only have an IP address
> available. Optionally I have a generic domain like
>
> lvps12-34-56-78.dedicated.myhoster.com
>
> Can I somehow make use of this?

Prosody will let you use anything. An IP address will work, but you
may have interoperability problems (it's not recommended in XMPP). The
domain should work fine. However depending on the kind of server you
are planning on running, you might want something more stable (e.g. a
domain owned/controlled by yourself).

The host is part of your JID, your identifier (username@host). XMPP
makes strong use of the JID for identification, and username@host1 is
very different to username@host2. This makes moving accounts between
hosts an awkward operation, especially if they have contacts on other
servers.

However none of this is strictly necessary. If you're just using the
server for testing, go ahead and use the domain or IP address. As long
as it's specified in the Prosody config file and the client accepts
it, you can use it.

Hope this helps,
Matthew

Christian Haake

unread,
Apr 25, 2013, 4:56:33 PM4/25/13
to prosod...@googlegroups.com, Prosody IM Users Group
<mwi...@gmail.com>:

> Hi,
Hi Matthew et al.,
thanks for your detailed response which helped a lot.
Currently I have no access to my server so I couldn't go into detail now.

>
> On 25 April 2013 16:48, chrizz <haake.c...@gmail.com> wrote:
>> Hi folks,
>> hope this question did not came up very often.
>>
>> Here is my problem:
>> On a virtual server I'm running an instance of prosody. A port scan onto
>> this server shows open ports 5222 (Client) & 5269 (Server).
>
> Sound like everything is up and running then.
>
>> I have the mod_register module enabled but when I try to register a new
>> account I get:
>>
>> Apr 25 17:31:03 c2s1663dad0 info Client connected
>> Apr 25 17:31:03 c2s1663dad0 info Disconnecting client, <stream:error>
>> is: <stream:error><host-unknown
>> xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text
>> xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve
>> 12.34.56.78</text></stream:error>
>> Apr 25 17:31:03 c2s1663dad0 info Client disconnected: This server
>> does not serve 12.34.56.78
>> Apr 25 17:31:03 c2s1663dad0 info Destroying session for (unknown)
>> ((unknown)@12.34.56.78)
>
> This error means the virtual host you are trying to connect to (or
> register on) isn't in the Prosody config file.
I've put it into the global config file. Do I have to create a separate file for each virtual host. Maybe this is the reason...
>
>> Doesn't this work with IP addresses at all? What do I have to use for as
>> VirtualHost in configuration file in case I only have an IP address
>> available. Optionally I have a generic domain like
>>
>> lvps12-34-56-78.dedicated.myhoster.com
>>
>> Can I somehow make use of this?
>
> Prosody will let you use anything. An IP address will work, but you
> may have interoperability problems (it's not recommended in XMPP). The
> domain should work fine. However depending on the kind of server you
> are planning on running, you might want something more stable (e.g. a
> domain owned/controlled by yourself).
Good to know...
The server as is, is just for testing purposes. If everything works I will move to another one.
>
> The host is part of your JID, your identifier (username@host). XMPP
> makes strong use of the JID for identification, and username@host1 is
> very different to username@host2. This makes moving accounts between
> hosts an awkward operation, especially if they have contacts on other
> servers.
>
> However none of this is strictly necessary. If you're just using the
> server for testing, go ahead and use the domain or IP address. As long
> as it's specified in the Prosody config file and the client accepts
> it, you can use it.
Thanks, currently I'm using just one server and will hopefully not have such problems.
>
> Hope this helps,
You made my day.
> Matthew
Chris
>
> --
> You received this message because you are subscribed to the Google Groups "Prosody IM Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prosody-user...@googlegroups.com.
> To post to this group, send an email to prosod...@googlegroups.com.
> Visit this group at http://groups.google.com/group/prosody-users?hl=en-GB.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages