# NC23 - Onlyoffice - Host violates local access rules

**URL:** <https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811>\
**Category:** 📄 Office\
**Tags:** nc23, onlyoffice\
**Created:** [December 8, 2021, 6:39am UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811 "2021-12-08T06:39:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludogomez](https://help.nextcloud.com/letter_avatar/ludogomez/32/6_22734026db12803ebb3e059622ac3534.png) [@ludogomez](https://help.nextcloud.com/u/ludogomez)\
**Post date:** [December 8, 2021, 6:39am UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/1 "2021-12-08T06:39:22Z")

</div>

Hello,

since I upgraded on NC23,  
When I click on office files, NC want to download them instead of open and I have this message on onlyoffice settings when I save :  
“Host violates local access rules”.

I’d already change config.php with

```auto
  'onlyoffice' =>
  array (
    'verify_peer_off' => false,
    'allow_local_remote_servers' => true,
  ),

```

Thanks for your help.  
Regards

---

<div class="post-metadata">

**Author:** ![SysKeeper](https://help.nextcloud.com/letter_avatar/syskeeper/32/6_22734026db12803ebb3e059622ac3534.png) [@SysKeeper](https://help.nextcloud.com/u/SysKeeper)\
**Post date:** [December 8, 2021, 4:26pm UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/2 "2021-12-08T16:26:23Z")

</div>

> [@ludogomez](#):
>
> `allow_local_remote_servers`

Needs to be outside of the onlyoffice key, on the root key.

---

<div class="post-metadata">

**Author:** ![ludogomez](https://help.nextcloud.com/letter_avatar/ludogomez/32/6_22734026db12803ebb3e059622ac3534.png) [@ludogomez](https://help.nextcloud.com/u/ludogomez)\
**Post date:** [December 9, 2021, 7:04am UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/3 "2021-12-09T07:04:02Z")

</div>

Hello,

I use "Community Document Server " on my nextcloud server. It’s a debian VM. I use internaly a http connection and a reverse proxy for user with https.

> Needs to be outside of the onlyoffice key, on the root key.  
> I don’t understand your response.

Thanks

---

<div class="post-metadata">

**Author:** ![RdedR](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rdedr/32/8912_2.png) [@RdedR](https://help.nextcloud.com/u/RdedR)\
**Post date:** [December 9, 2021, 7:22am UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/4 "2021-12-09T07:22:23Z")

</div>

It is within the brackets array for onlyoffice parameters.  
Syskeeper says move it outside on a separate line in the config.php under root key

---

<div class="post-metadata">

**Author:** ![ludogomez](https://help.nextcloud.com/letter_avatar/ludogomez/32/6_22734026db12803ebb3e059622ac3534.png) [@ludogomez](https://help.nextcloud.com/u/ludogomez)\
**Post date:** [December 9, 2021, 7:26am UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/5 "2021-12-09T07:26:53Z")

</div>

Thanks a lot RdedR,

it works with theses parameters :

> ‘onlyoffice’ =\>  
> array (  
> ‘verify\_peer\_off’ =\> false,  
> ),  
> ‘allow\_local\_remote\_servers’ =\> true,

Have a good day  
Regards

---

<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:** [December 14, 2024, 2:42pm UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/6 "2024-12-14T14:42:47Z")

</div>



---

<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:** [December 14, 2024, 2:42pm UTC](https://help.nextcloud.com/t/nc23-onlyoffice-host-violates-local-access-rules/128811/7 "2024-12-14T14:42:49Z")

</div>


