Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I trying to build a rails application to upload large video file which will be hosted at s3.amazonaws.com server it works fine with smaller file but gives 413 Request entity too large error for large file (around 30MB). I change my nginx configuration file and increased client_max_body_size to 4G. Still it does not work.

Can anybody help me ?

share|improve this question
    
Did you restart nginx after changing your configuration? –  Adrian Lang Nov 22 '12 at 12:46
    
What's in the error log? –  VBart Nov 22 '12 at 17:57

1 Answer 1

I would suggest looking at all the different places where client_max_body_size could be set. For example, in the server and location sections - anywhere that Nginx is pulling configuration files from.

To find any occurrences of client_max_body_size, try the following unix command from the nginx directory:

sudo grep -R 'client_max_body_size' ./*
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.