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 - Knockout pushing observable and computed data to an observable array -

c# - Update a combobox from a presenter (MVP) -

'hasOwnProperty' in javascript -