nginx - client_max_body_size for images in location -


i want increase max size of attaching images posting in media directory, using such instruction getting 413 request entity large

location ~* .+/media/.+\.(jpeg|gif|png|jpg) {         client_max_body_size 20m;         } 

what mistake?

such instructions as:

location ~* .+/media/.+ {         client_max_body_size 20m;         } 

and:

 location ~* .+\.(jpeg|gif|png|jpg)$ {         client_max_body_size 20m;         } 

don't working too


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -