I have a web application, and I'd like to limit file upload size.
I thought I'd try using squid for this, via its directive request_body_size_max.
I have my webserver running on port 8080, and I've installed squid 3.1.19 on the same server (Ubuntu 12.04 LTS). The server is running on Amazon's EC2, if that makes any difference.
squid.conf contains:
http_port 3128 transparent
I added to IPTables:
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 3128
When I visit the webserver, the result in squid's logs, is:
Forwarding loop detected.
What do I need to do to prevent this? thanks...