I‘d like to put limits on user(s) who are uploading files. How do I restricts the total size of the HTTP request body sent from the client under Apache 2 Web server?
To restricts the total size of the HTTP request body sent from the client use LimitRequestBody Directive. You can add this directive using .htaccess file or httpd.conf file under virtual host or directory configuration options. You can set value (in bytes) from 0 (unlimited) to 2147483647 (2GB) that are allowed in a request body.
For example, limit /var/www/vhost/sxi.io/wp-uploads to 100K, you might use the following directive (add to .htaccess or httpd.conf file):
<Directory "/var/www/vhost/sxi.io/wp-uploads"> LimitRequestBody 102400 </Directory>
Save and close the file. You need to restart or reload the httpd server as follows:
# service httpd restart
# service httpd reload