3

I am about to setup a reverse proxy server to filter and log page requests before relaying the actual content from the origin server. (new to this)

Before this, I had the origin server public facing, and I had php5 configured to accept 20 Mb file uploads for my php web-app.

Now that I am sticking the proxy server in between, are there any special configurations that I should consider to make sure things such as file-transfer are still relayed properly between the client and the origin server?

Thanks!

1 Answer 1

2

This depends very much on the reverse proxy you are using, as they tend to have different default max request body lengths.

e.g.

Apache - defaults to unlimited, it can be set using LimitRequestBody http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody

Nginx - defaults to 1MB, it can be changed using client_max_body_size http://wiki.nginx.org/HttpCoreModule#client_max_body_size

Squid - defaults to unlimited, it can be set using request_body_max_size http://www.squid-cache.org/Doc/config/request_body_max_size/

There may also be request body read timeouts, such as Nginx's client_body_timeout which is set to 60 seconds, which may affect people on slower/bad connections.

3
  • I am using Apache - I will look into the parameter you suggested and the same for time-out limits. Thanks @Andy!
    – Anson Kao
    Dec 11, 2010 at 20:40
  • 2
    A note about the limitrequestbody: Note: not applicable to proxy requests. Per httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody
    – user235375
    Jul 31, 2014 at 1:19
  • @user235375 Was the documentation changed in the meantime? I don't see anything about proxy at "LimitRequestBody". So I conclude that it works with Apache 2.2 even with proxy requests. Aug 14, 2023 at 9:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .