Re: disable .php files uploads using php (php-fpm)

2016-08-30 Thread Richard Stanway
File uploads are passed in the request body, not the headers so you cannot disable or otherwise affect them by setting HTTP_X variables. This is a job for your backend as nginx does not really interact with post body contents. On Tue, Aug 30, 2016 at 1:54 AM, c0nw0nk wrote: > Christos Chatzaras

Re: disable .php files uploads using php (php-fpm)

2016-08-29 Thread c0nw0nk
Christos Chatzaras Wrote: --- > Is any way to get the body of a php post upload to match using regex > the filename of a php upload? I want to block file uploads with .php > extension. I found that I can do it with nasxi but I want to see if I > c

disable .php files uploads using php (php-fpm)

2016-08-28 Thread Christos Chatzaras
Is any way to get the body of a php post upload to match using regex the filename of a php upload? I want to block file uploads with .php extension. I found that I can do it with nasxi but I want to see if I can avoid it. ___ nginx mailing list nginx@ng