Apache download size limit? - Printable Version
+- nixers (
+-- Forum: Operating Systems & Administration (
+--- Forum: GNU/Linux (
+--- Thread: Apache download size limit? (/Thread-Apache-download-size-limit)

Apache download size limit? - sodaphish - 16-07-2014

So, I have a Debian 7 box running Apache 2, and Owncloud. If You've never heard of owncloud, its like DropBox but it runs on your kit. That said, I have a number of VMDK files in my owncloud folder that REFUSE to sync -- either up or down. I've set the LimitRequestBody directive in my apache config file to 20480000, which I would expect to limit file sizes to 2GB... does anyone have any input as to why my owncloud can't sync files greater than 2gb? Plz?


RE: Apache download size limit? - venam - 17-07-2014

Does it uses PHP? If it does you'll have to change some limits in the php.conf file, namely upload_max_filesize, max_file_uploads, post_max_size for example. You might find more information on the ArchWiki

RE: Apache download size limit? - xero - 05-08-2014

for an apache specific solution you need to use LimitRequestBody.

the value of LimitRequestBody can be between 0 bytes (unlimited) to 2147483647 (2GB).

for example,if you want to limit upload size to 100k for /srv/http/htdocs/uploads, add the following to .htaccess or httpd.conf.
<Directory "/srv/http/htdocs/uploads">
    LimitRequestBody 102400