# Requests Entity too large with nextcloud:apache docker image

**URL:** <https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125>\
**Category:** ℹ️ Support\
**Tags:** docker\
**Created:** [December 20, 2023, 12:09pm UTC](https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125 "2023-12-20T12:09:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElderDakkar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/elderdakkar/32/56977_2.png) [@ElderDakkar](https://help.nextcloud.com/u/ElderDakkar)\
**Post date:** [December 20, 2023, 12:09pm UTC](https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125/1 "2023-12-20T12:09:41Z")

</div>

Greetings.

I’m running nextcloud in a docker setup. The image i use is `nextcloud:apache`. I’m getting ` 413 Request Entity Too Large` errors. So the fix should be to increase the body size of apache. And this is where my trouble begins:

I do have no idea, where to configure this as the apache.conf (or any othere apache relevant config file) seems to be exposed/persisted

I have the following mount in my container:

```auto
volumes:
      - ./data/nextcloud:/var/www/html

```

Any idea how to set this option without the need to completely rebuild the image myself?

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_449c533f586939b6e5f246632a46421f.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [December 20, 2023, 2:36pm UTC](https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125/2 "2023-12-20T14:36:19Z")

</div>

Search for `APACHE_BODY_LIMIT` environment configuration variable in the Docker image README[1]. There’s no need to replace the Apache configuration file(s).

As an aside, what is the use case you’re running into this situation in? I ask because while there are some situations where it could still be necessary (e.g. anonymous/public file drops \>1GiB) due to a lack of client chunking support, the majority of situations/client operations support (and use) chunking by default.

[1] [https://github.com/nextcloud/docker/](https://github.com/nextcloud/docker/)

---

<div class="post-metadata">

**Author:** ![ElderDakkar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/elderdakkar/32/56977_2.png) [@ElderDakkar](https://help.nextcloud.com/u/ElderDakkar)\
**Post date:** [December 20, 2023, 5:57pm UTC](https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125/3 "2023-12-20T17:57:38Z")

</div>

Worked fine.

My usecase was a rclone sync, which is basically a WebDAV transfer.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [December 28, 2023, 5:58pm UTC](https://help.nextcloud.com/t/requests-entity-too-large-with-nextcloud-apache-docker-image/177125/4 "2023-12-28T17:58:35Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
