# Office online server with nextcloud

**URL:** <https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036>\
**Category:** ℹ️ Support\
**Tags:** ms-office-online\
**Created:** [May 30, 2024, 9:42pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036 "2024-05-30T21:42:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Rodriguez](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandro_rodriguez/32/54286_2.png) [@Alejandro\_Rodriguez](https://help.nextcloud.com/u/Alejandro_Rodriguez)\
**Post date:** [May 30, 2024, 9:42pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/1 "2024-05-30T21:42:37Z")

</div>

I need to be able to run my office online serer with http from nexcloud which is with https.  
I have my nexcloud server with https publicly, my MSOffi server. on the LAN network. If I use nexcloud with [http://nexcloud](http://nexcloud)… office online works fine, but if I use it with https:// I have the following error.  
ixed Content: The page at ‘[https://172.17.87.249/index.php/apps/files/files/2363159?dir=/&openfile=true](https://172.17.87.249/index.php/apps/files/files/2363159?dir=/&openfile=true)’ was loaded over HTTPS, but requested an insecure form action ‘[http://172.17.87.172/x/\_layouts/xlviewerinternal.aspx?edit=1&ui=es-ES&WOPISrc=https%3A%2F%2F172.17.87.249%2Findex.php%2Fapps%2Fofficeonline%2Fwopi%2Ffiles%2F2363159\_ocfydgh24gg3&title=Nueva%20Hoja%20de%20cálculo%20(1).xlsx&lang=es&closebutton=1&revisionhistory=1](http://172.17.87.172/x/_layouts/xlviewerinternal.aspx?edit=1&ui=es-ES&WOPISrc=https%3A%2F%2F172.17.87.249%2Findex.php%2Fapps%2Fofficeonline%2Fwopi%2Ffiles%2F2363159_ocfydgh24gg3&title=Nueva%20Hoja%20de%20c%C3%A1lculo%20(1).xlsx&lang=es&closebutton=1&revisionhistory=1)’. This request has been blocked; the content must be served over HTTPS.

---

<div class="post-metadata">

**Author:** ![LeoStehlik](https://help.nextcloud.com/letter_avatar/leostehlik/32/5_5575768a8748004e209b776fc1b2916d.png) [@LeoStehlik](https://help.nextcloud.com/u/LeoStehlik)\
**Post date:** [May 30, 2024, 9:51pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/2 "2024-05-30T21:51:41Z")

</div>

If by Office Online server you mean your own instance of Collabora CODE Office, what stops you from putting an nginx reverse proxy in front of the CODE http server, terminate TLS at the NGINX and configure it with self-signed certificates (or skip the nginx part and add the certificates directly to the Collabora CODE service itself?)

I would not go for plain http in 2024, maybe it was OK in our wild days in the 90s or 00s, but nowadays?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Rodriguez](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandro_rodriguez/32/54286_2.png) [@Alejandro\_Rodriguez](https://help.nextcloud.com/u/Alejandro_Rodriguez)\
**Post date:** [May 31, 2024, 12:17pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/3 "2024-05-31T12:17:58Z")

</div>

The office server is Microsoft Office Online Server and it is located on a LAN IP, this is only with http since it is a LAN IP and not a WAN IP for https. My nexcloud service is on a public IP therefore it has a domain and https is implemented. What I need is how can I communicate my WAN IP with my MS office server WOPI service that is on the LAN

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [June 5, 2024, 9:32am UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/4 "2024-06-05T09:32:13Z")

</div>

The integration of all Office products works in a same way, you may consult [Collabora integration guide](https://help.nextcloud.com/t/collabora-integration-guide/151879) (and follow references provided there) but basics remain the same - you must use same protocol for NC and office - **https:// is recommended**

---

<div class="post-metadata">

**Author:** ![Alejandro\_Rodriguez](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandro_rodriguez/32/54286_2.png) [@Alejandro\_Rodriguez](https://help.nextcloud.com/u/Alejandro_Rodriguez)\
**Post date:** [July 4, 2024, 7:36pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/5 "2024-07-04T19:36:10Z")

</div>

I need to be able to run my office online server with http from nexcloud which is with https.  
I have my nexcloud server with https publicly, my MSOffic server. [https://serveroffic](https://serveroffic)…/hosting/discovery. If I use nexcloud with office online works fine , but MSword don’t paste picture

 ![image](https://help.nextcloud.com/uploads/default/original/3X/2/e/2e4986b7e8a49e9c55716c0abccb8d32511a8a9d.png) Failed to load resource: the server responded with a status of 412 (Precondition failed)  
index.js:314 OC.requestToken changed CeN45S0tr1LdGliAN42MYcu+Z4c9cnv90pjaTd5E+B4=:Wqs+lFV33QC3Xx6vD8zuM4DuCL8PATKVvPqDe7sXlmg=  
a and power point  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/a/a/aa26e4594ef10996c6e1a73884bdfd335b49cf1a.png)

says error id: with sesion :…MicrosoftAjax.js?bn=424302413:5  
POST [https://serverofficeuchile.cl/p/ppt/view.svc/jsonAnonymous/GetFullSizePreview](https://serverofficeuchile.cl/p/ppt/view.svc/jsonAnonymous/GetFullSizePreview) 404 (Not Found)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [July 4, 2024, 7:45pm UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/6 "2024-07-04T19:45:49Z")

</div>

> [@Alejandro\_Rodriguez](#):
>
> office online server with http from nexcloud which is with https.

likely this will not work at all… and you definitely don’t want to expose your office server to the internet using http://

I recommend to consult M$ support to resolve office online server errors.

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 5, 2024, 5:10am UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/7 "2024-07-05T05:10:02Z")

</div>

Have you test in `config.php`:  
`'overwriteprotocol' => 'https',`

Maybe it forces Nextcloud to use HTTPS instead of HTTP.

If you absolutely have to use HTTP: Ask yourself whether this will still be standard for Microsoft products in 2024. Tell us what is stopping you from using HTTPS.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 8:17am UTC](https://help.nextcloud.com/t/office-online-server-with-nextcloud/194036/8 "2025-01-16T08:17:42Z")

</div>


