Apache configurations for Reverse Proxy

apache-2.2file-transferPROXYreverse-proxy

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!

Best Answer

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.

Related Topic