# Easiest way to allow multiple hosts using Collabora

**URL:** <https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071>\
**Category:** Installation & Configuration\
**Created:** [September 26, 2026, 11:31am UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071 "2026-09-26T11:31:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan-P](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/stephan-p/32/1985_2.png) [@Stephan-P](https://forum.collaboraonline.com/u/Stephan-P)\
**Post date:** [September 26, 2026, 11:31am UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/1 "2026-09-26T11:31:50Z")

</div>

I had Collabora COOL running smoothly together with [Sync-in](https://sync-in.com), without doing much nifty configuration. (And written it down in a [tutorial](https://github.com/Sync-in/awesome-sync-in/blob/main/tutorials/Sync-in%20on%20OMV%208.md).)  
Then I discovered [NextExplorer](https://explorer.nxz.ai) that should also be able to open files using Collabora, but its WOPI connections were refused.

I’ve searched and found that one way to overcome this is to edit the ‘storage’ section in coolwsd.xml with groups. This appears a bit overwhelming to me, because - to my understanding - I now need to configure each possible WOPI host, i.e. [https://sync-in.mydomain.tld](https://sync-in.mydomain.tld) and its local equivalent [http://192.168.2.211](http://192.168.2.211) and [https://nextexplorer.mydomain.tld](https://nextexplorer.mydomain.tld) and its local equivalent [http://192.168.2.211](http://192.168.2.211) and possibly other ones in the future. Or should those be localhost 127.0.0.0? I don’t know about this stuff.

Is there an easier way to allowing Collabora COOL accepting different hosts?

- In the Collabora compose file, instead of coolwsd.xml?
- Using an asterisk wildcard in coolwsd, e.g. host https://\*.mydomain.tld or [http://192.168.2.211:\*](http://192.168.2.211:*)

---

<div class="post-metadata">

**Author:** ![mmeeks](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/mmeeks/32/371_2.png) [@mmeeks](https://forum.collaboraonline.com/u/mmeeks)\
**Post date:** [September 26, 2026, 2:16pm UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/2 "2026-09-26T14:16:20Z")

</div>

Good question; you can use a regexp - but it matches just the hostname - so nextexplorere.mydomain.tld should match ‘.\*\.mydomain\.tld’

The complexity of groups is to handle the world of single servers being mapped to multiple domain-names in interesting ways IIRC.

Hope that helps; and glad you got up & running fast 🙂

---

<div class="post-metadata">

**Author:** ![Stephan-P](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/stephan-p/32/1985_2.png) [@Stephan-P](https://forum.collaboraonline.com/u/Stephan-P)\
**Post date:** [September 26, 2026, 2:43pm UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/3 "2026-09-26T14:43:55Z")

</div>

Thanks for this @mmeeks.  
What’s that with the extra slashes?

---

<div class="post-metadata">

**Author:** ![Stephan-P](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/stephan-p/32/1985_2.png) [@Stephan-P](https://forum.collaboraonline.com/u/Stephan-P)\
**Post date:** [September 26, 2026, 2:53pm UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/4 "2026-09-26T14:53:44Z")

</div>

And how can I arrange that the internal instances of sync-in and nextexplorer are accepted as wopi hosts? Because, since I’ve edited the coolwsd.xml with mode=groups they’re refused.

---

<div class="post-metadata">

**Author:** ![colorfulcms](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@colorfulcms](https://forum.collaboraonline.com/u/colorfulcms)\
**Post date:** [October 26, 2026, 8:00am UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/5 "2026-10-26T08:00:16Z")

</div>

The extra slashes are just regex escaping: a dot has to be written as \. so it matches a literal dot instead of any character. For the internal instances, I’d add their hostnames or IPs as separate host entries in the same group (for example 192\.168\.2\.211 alongside the public hostname), since the match is done against the host part only and not the port. After editing coolwsd.xml, restart the container and check the log to confirm which hosts it accepted.

---

<div class="post-metadata">

**Author:** ![markus](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@markus](https://forum.collaboraonline.com/u/markus)\
**Post date:** [October 27, 2026, 8:39am UTC](https://forum.collaboraonline.com/t/easiest-way-to-allow-multiple-hosts-using-collabora/5071/6 "2026-10-27T08:39:01Z")

</div>

> [@Stephan-P](#):
>
> In the Collabora compose file, instead of coolwsd.xml?

That’s possible with `aliasgroup1`, `aliasgroup2`, `aliasgroup3`, and so on.

[https://sdk.collaboraonline.com/docs/installation/CODE\_Docker\_image.html#setting-the-application-configuration-dynamically-via-environment-variables](https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html#setting-the-application-configuration-dynamically-via-environment-variables)

Something like this, untested:

```xml
services:
  collabora:
    image: collabora/code:<version>
    environment:
      - aliasgroup1=https://example.com:443
      - aliasgroup2=https://example.net:443
  (..)

```
