For the record, I used a combination of a similar issue in the mailing list and a combination of what @Valentin suggested. In the end, this is what works for me: if ($request_uri ~* upload$) { rewrite ^/(.*)$ /upload/$1 last; } location ~ /upload/(.*)$ { internal; client_max_body_size 200M; fastcgi_param PHP_VALUE ....; fastcgi_pass php; fastcgi_param SCRIPT_FILENAME $dby skyroski - Nginx Mailing List - English
Hi, I have found similar topics on discussion with location based request but because I'm using a PHP software that by default handles everything through a single PHP file (including processing POST uploads of files) I would like to be able to use if ($request_uri ~* upload$) { client_max_body_size 200M; } for example, so that all URI with the word upload at the end will automaticallyby skyroski - Nginx Mailing List - English