Apache download size limit? - GNU/Linux

Users browsing this thread: 3 Guest(s)
sodaphish
Long time nixers
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?

Cheers,
Soda
venam
Administrators
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 https://wiki.archlinux.org/index.php/Owncloud
xero
Long time nixers
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.
Code:
<Directory "/srv/http/htdocs/uploads">
    LimitRequestBody 102400
</Directory>