If you have an NGINX site that must allow users to upload files, try this configuration to help prevent possible Denial-of-Service attacks. Out of the box, NGINX sets a limit of 1MB for file uploads.
I have no experience with Nginx least of all with running it alongside apache. I also don't have a huge amount of experience with apache either, I've just picked up what I've needed to over the years.