[JDEV] Separate configurations for virtual servers?

David Barth dbarth at idealx.com
Wed Jan 31 08:46:07 CST 2001


Tim Ferguson a écrit :
[...]

> <service id=sessions>
>   [remove the <host> tag that normally goes here]
>   <service id='jsm_vhost_a'>

I doubt you can have a <service> inside another <service>.
I was thinking of two distinct services one after another, each one
loading jsm.so :

  <service
id="jsm1">                                                       
    <host>you first virtual domain</host>
    <jsm xmlns="jabber:config:jsm">
      etc...
    </jsm>
 
    <load main="jsm">
      <jsm>./jsm/jsm.so</jsm>
      <mod_echo>./jsm/jsm.so</mod_echo>
      <mod_roster>./jsm/jsm.so</mod_roster>
      <mod_time>./jsm/jsm.so</mod_time>
      <mod_vcard>./jsm/jsm.so</mod_vcard>
      <mod_last>./jsm/jsm.so</mod_last>
      <mod_version>./jsm/jsm.so</mod_version>
      <mod_announce>./jsm/jsm.so</mod_announce>
      <mod_agents>./jsm/jsm.so</mod_agents>
      <mod_browse>./jsm/jsm.so</mod_browse>
      <mod_admin>./jsm/jsm.so</mod_admin>
      <mod_filter>./jsm/jsm.so</mod_filter> 
      etc...
    </load>
  </service>

Then repeat the same config lines with a service id='jsm2' and another
<host> tag filtering messages for another virtual domain.

-- 
dbarth




More information about the JDev mailing list