I am struggling to get Nextcloud to accept larger files (up to 512MB) via SSL.
What I have this far is:
In /etc/apache2/conf-enabled/owncloud.conf:
Alias /nextcloud "/var/www/nextcloud/"
<Directory "/var/www/nextcloud">
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
LimitRequestBody 201048600
SSLRenegBufferSize 201048600
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
<Directory "/var/www/nextcloud/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>
In /etc/php5/apache2/php.ini (confirmed by phpinfo() and set in nextcloud admin settings, too)
post_max_size = 512M
upload_max_filesize = 512M
However, larger files can still not be uploaded (413 Request Entity Too Large). It doesn't even work with 6 MB files...
Am I missing some kind of special setting?
I forgot that the test-server running nextcloud was only accessible via an nginx proxy server.
I had to add client_max_body_size 512M
in the nginx config as well.