Forum

Probleme whit uploading big files on owncloud through hiawata reverse proxy

lionel
20 August 2014, 16:14
hello hugo

i use Hiawatha as a reverse proxy on a DMZ to access to my Apache web server hosting owncloud. All work fine except when i upload big files. I m banned
In the Hiawatha system log i got
+200 | Maximum request size reach
+200 | client banned because of sending a too large request
+200 | client kicked

I tried to increase the MaxRequestSize in the config files
MaxRequestSize = 10000

but it the same. i see in a post on your forum that owncloud and hiawatha work fine. so were is my mistake ?

regards, lionel
Hiawatha version: 9.6
Operating System: Debian 6
Hugo Leisink
20 August 2014, 16:18
Perhaps it is because of large PUT requests. Those are specified via MaxUploadSize. Check the manual for this option.
lionel
21 August 2014, 08:01
hi Hugo

And thanks for your reply. It don't seem to be that. i've already tried to put MaxUploadSize at the max : 100 megabytes as you write on the manual but a still got the problem.

and the log speak about the size of the request. (what is the max of this param ?)

i look on the manual and i can find a means to disable this control to give a try

regard, lionel
Mustafa Ramadhan
21 August 2014, 20:26
I have a patch for change MaxUploadSize (Hiawatha for Kloxo-MR panel).

--- src/serverconfig.c	2013-11-05 16:39:26.000000000 -0500
+++ src/serverconfig.c.patch 2013-12-02 08:18:15.911992001 -0500
@@ -31,7 +31,7 @@
#define ID_NOBODY 65534
#define MAX_LENGTH_CONFIGLINE 512
#define MAX_CACHE_SIZE 100
-#define MAX_UPLOAD_SIZE 100
+#define MAX_UPLOAD_SIZE 2048
#define MONITOR_HOSTNAME "monitor"

enum t_section { syntax_error = -1, none, binding, virtual_host, directory, fcgi_server
Hugo Leisink
21 August 2014, 20:27
You seriously want to upload 2GB files to a webserver?!? That's insane...
Mustafa Ramadhan
21 August 2014, 20:37
It's request by Kloxo-MR user and they said 'it;s work'.
Hugo Leisink
21 August 2014, 21:07
I'll make it 2047 to prevent an integer overflow. That one megabyte you are missing now shouldn't be a problem, right?
Mustafa Ramadhan
21 August 2014, 21:16
It's good to make 2047.

In Kloxo-MR user experience it's work for 2000MB with setting MAX_UPLOAD_SIZE 2048. They have a problem if upload (let say) 2100MB (aka more than 2000MB).
This topic has been closed.