# Proxy/collabora/nextcloud on different servers

**URL:** <https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634>\
**Category:** Installation & Configuration\
**Created:** [May 19, 2024, 4:25am UTC](https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634 "2024-05-19T04:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ijeoijwoeic2eij2](https://avatars.discourse-cdn.com/v4/letter/i/2bfe46/32.png) [@ijeoijwoeic2eij2](https://forum.collaboraonline.com/u/ijeoijwoeic2eij2)\
**Post date:** [May 19, 2024, 4:25am UTC](https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634/1 "2024-05-19T04:25:06Z")

</div>

Hi All,

I have nextcoud, collabora, and an nginx proxy servers running on three different vms on a KVM host server. All ubuntu servers

The nginx proxy is also serving the letsencrypt certs.

Nextcloud and proxy are existing and functioning correctly.

Trying to add collabora docker server to the vms.

I seem to be screwing up the nginx conf files on both the proxy and collabora servers

Does anyone have sample working nginx conf files for both servers that I can use as a guide to ?

When I type in the IP address of collabora server into my laptop browser, I get the default nginx page, when I type in the https domain name that I have assigned for it, I get “ERR\_TOO\_MANY\_REDIRECTS” error

Regards

---

<div class="post-metadata">

**Author:** ![ijeoijwoeic2eij2](https://avatars.discourse-cdn.com/v4/letter/i/2bfe46/32.png) [@ijeoijwoeic2eij2](https://forum.collaboraonline.com/u/ijeoijwoeic2eij2)\
**Post date:** [May 19, 2024, 5:02am UTC](https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634/2 "2024-05-19T05:02:01Z")

</div>

UPDATE:::::::

I think that I managed to figure out the conf file on the proxy server, because now I am getting the default nginx conf file from the collabora server, now when I type in the domain name.

I believe that I have to figure out the collabora server nginx conf file.

If someone has a sample that I can use to create one, that would be great.

Also, which nginx folder do I put it in?

Regards

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [May 23, 2024, 12:49am UTC](https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634/3 "2024-05-23T00:49:12Z")

</div>

Hey @ijeoijwoeic2eij2. Welcome to the forum. 🙂

Have you tried following the instructions:

- [sdk.collaboraonline.com: “Proxy settings” \> “Reverse proxy with Nginx webserver”](https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-nginx-webserver)

There is also this fantastic Nextcloud “Wiki” topic that might help:

- [Collabora integration guide - Wiki - Nextcloud community](https://help.nextcloud.com/t/collabora-integration-guide/151879)

They go into even more testing between Nextcloud\<-\>Collabora + proxies/troubleshooting things. 🙂

* * *

Might also help if you can give exact version numbers too of:

- Collabora Online + richdocuments
- Nextcloud
- Your OS + OS version
- […]

* * *

> [@ijeoijwoeic2eij2](#):
>
> I think that I managed to figure out the conf file on the proxy server, because now I am getting the default nginx conf file from the collabora server, now when I type in the domain name.

Great! Sounds like one step in the right direction! 🙂

---

<div class="post-metadata">

**Author:** ![ijeoijwoeic2eij2](https://avatars.discourse-cdn.com/v4/letter/i/2bfe46/32.png) [@ijeoijwoeic2eij2](https://forum.collaboraonline.com/u/ijeoijwoeic2eij2)\
**Post date:** [May 23, 2024, 10:13pm UTC](https://forum.collaboraonline.com/t/proxy-collabora-nextcloud-on-different-servers/2634/4 "2024-05-23T22:13:43Z")

</div>

Hi Thank you, Tex, for the help so far:

3 Servers, all Ubuntu22LTS

Nextcloud Server: NC29.0.1/ NGINX, 192.168.1.100 [https://myextclouddomain.com/](https://myextclouddomain.com/)

Collabora (NonDocker) Server: Presuming 24.04, brand new fresh install 192.168.1.200 [https://office.mynextclouddomain.com/](https://office.mynextclouddomain.com/)

NGINX Proxy Server: 192.168.1.300 [https://proxy.mynextclouddomain.com/](https://proxy.mynextclouddomain.com/)

Been using this link as a troubleshooting guide: [Collabora integration guide - Wiki - Nextcloud community](https://help.nextcloud.com/t/collabora-integration-guide/151879)

By the looks of it, everything is installed correctly, can access all the test urls from curl of all servers and browsers.

Have the green checkmark on Admin-\>Office, for the wopi ip address, I am using the LAN subnet 192.168.1.0/24

I am thinking that the /etc/coolwsd/coolwsd.xml config file group/alias is not setup correctly (maybe?), don’t know if that would be the cause

```auto
<wopi allow="true" desc="Allow/deny wopi storage.">
                        <max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>
                        <locking desc="Locking settings">
                                <refresh default="900" desc="How frequently we should re-acquire a lock with the storage server, in seconds (default 15 mins) or 0 for no refresh" type="int">900</refresh>
                        </locking>
                        <alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its aliases" mode="first">
                                <!-- If you need to use multiple wopi hosts, please change the mode to "groups" and
                    add the hosts below. add them as aliases. -->
                                <!--<group>
                    <host desc="hostname to allow or deny." allow="true">scheme://hostname:port</host>
                    <alias desc="regex pattern of aliasname">scheme://aliasname1:port</alias>
                    <alias desc="regex pattern of aliasname">scheme://aliasname2:port</alias>

            </group>-->
                                <!-- More "group"s possible here -->
                        </alias_groups>
                        <is_legacy_server default="false" desc="Set to true for legacy server that need deprecated headers." type="bool"/>
                        <host></host>
                </wopi>

```

I have alias\_groups set to first

My nextcloud is on the main domain ([https://myextclouddomain.com](https://myextclouddomain.com)), the collabora is on the subdomain ([https://office.mynextclouddomain.com](https://office.mynextclouddomain.com))

Regards
